mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Translatable
This commit is contained in:
@@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Date;
|
|||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Illuminate\Support\Stringable;
|
use Illuminate\Support\Stringable;
|
||||||
|
use Spatie\Translatable\Facades\Translatable;
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
@@ -45,5 +46,9 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
Str::macro('initials', function (string $string) {
|
Str::macro('initials', function (string $string) {
|
||||||
return (string) (new Stringable($string))->initials();
|
return (string) (new Stringable($string))->initials();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Translatable::fallback(
|
||||||
|
fallbackAny: true,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user