Use laravel-admin to configure the background management system

A simple background management system is needed to connect the user information table in the database to complete the basic addition, deletion, modification, and check operations.
It is best to support authority management; there are convenient interfaces to call (no need for deep customization); the front-end interface and interaction are beautiful and concise, sufficiently "modern"; the structure is clear, the configuration is simple, and rapid prototyping is possible.
After several searches, I feel that the laravel-admin framework is pretty good. Although the documentation is not perfect, I just stepped on a few pits and built it without too much trouble. It is worth recording.

 

Install Laravel and initialize the project

composer Install Laravel using the  command:
composer global require laravel/installer

 

 

 

 

Modify the database configuration file

Edit config/database.phpfiles (default mysql database has been used), modify the configuration mysql section, urlto the following form:
'url' => env('DATABASE_URL', 'mysql://Laravel:[email protected]/admin'),
 

Publishing resources:
$ php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"

Use the following command to complete the installation:
$ php artisan admin:install


 

The account and password are both admin:



 

 

Guess you like

Origin blog.csdn.net/lchmyhua88/article/details/105595995