First, install laravel, and make sure that the database connection settings are correct.
composer require encore/laravel-admin:1.*
Then run these commands to publish assets and config：
php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
After run command you can find config file in
config/admin.php, in this file you can change the install directory,db connection or table names.
At last run following command to finish install.
php artisan admin:install
http://localhost/admin/ in browser,use username
admin and password
admin to login.
After the installation is complete, the following files are generated in the project directory:
After the installation is complete,all configurations are in the
After install,you can find directory
app/Admin,and then most of our develop work is under this directory.
app/Admin ├── Controllers │ ├── ExampleController.php │ └── HomeController.php ├── bootstrap.php └── routes.php
app/Admin/routes.php is used to define routes.
app/Admin/bootstrap.php is bootstrapper for laravel-admin, more usages see comments inside it.
app/Admin/Controllers directory is used to store all the controllers, The
HomeController.php file under this directory is used to handle home request of admin,The
ExampleController.php file is a controller example.
The front-end static files are in the