mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
Use Laravel's slugger for basic transliteration
This is better than the current system, as it adds transliteration rules for special characters, rather than just throwing all of them away. For languages that cannot be transliterated to ASCII in a reasonable manner, more possible improvements are outlined in #194.
This commit is contained in:
committed by
Daniël Klabbers
parent
5c3a0e3e6e
commit
03faaaedef
@@ -7,9 +7,9 @@
|
||||
* LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Flarum\Util\Str;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
'up' => function (Builder $schema) {
|
||||
|
Reference in New Issue
Block a user