代碼: 選擇全部
composer require barryvdh/laravel-translation-manager
代碼: 選擇全部
Barryvdh\TranslationManager\ManagerServiceProvider::class,
代碼: 選擇全部
php artisan vendor:publish --provider="Barryvdh\TranslationManager\ManagerServiceProvider" --tag=migrations
php artisan migrate
php artisan vendor:publish --provider="Barryvdh\TranslationManager\ManagerServiceProvider" --tag=config
php artisan vendor:publish --provider="Barryvdh\TranslationManager\ManagerServiceProvider" --tag=views
代碼: 選擇全部
'route' => [
'prefix' => 'translations',
'middleware' => [
'web',
'auth',
],
],
http://localhost/translations