1 頁 (共 1 頁)

多國語系編輯器

發表於 : 2017-10-02 11:26:48
yehlu
https://github.com/barryvdh/laravel-translation-manager

代碼: 選擇全部

composer require barryvdh/laravel-translation-manager
config/app.php

代碼: 選擇全部

        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
config/translation-manager.php

代碼: 選擇全部

    'route' => [
        'prefix' => 'translations',
        'middleware' => [
	        'web',
	        'auth',
		],
    ],
run
http://localhost/translations