代碼: 選擇全部
Laravel 5.2
composer require encore/laravel-admin "dev-master"
Laravel 5.3
composer require encore/laravel-admin "1.3.x-dev"
Laravel 5.1
composer require encore/laravel-admin "1.1.x-dev"
代碼: 選擇全部
//Providers
Encore\Admin\Providers\AdminServiceProvider::class
代碼: 選擇全部
php artisan vendor:publish --tag=laravel-admin
Copied Directory [/vendor/encore/laravel-admin/assets] To [/public/packages/admin]
Publishing complete for tag [laravel-admin]!
代碼: 選擇全部
php artisan admin:install
Admin directory was created: /app/Admin
HomeController file was created: /app/Admin/Controllers/HomeController.php
ExampleController file was created: /app/Admin/Controllers/ExampleController.php
Bootstrap file was created: /app/Admin/bootstrap.php
Routes file was created: /app/Admin/routes.php
代碼: 選擇全部
php artisan admin:make LicenceController --model=App\\Models\\Licence
代碼: 選擇全部
$router->resource('licences', LicenceController::class);