How to create quick admin panel in laravel
In This Tutorial i will show you how to create quick admin panel in laravel using Laravel Voyager admin package. we will implement laravel voyager admin package in laravel 5.4 version. Voyager admin package provide some functionality like as below :
1. Media Manager
2. Menu Builder
3. Database Manager
4. BREAD/CRUD Builder
1. Create new Project:
we can create project using following command :
composer create-project --prefer-dist laravel/laravel Projectname
2. Install Package :
Voyager is super easy to install. After creating your new Laravel application you can include the Voyager package with the following command:
composer require tcg/voyager
3. Database Configuration :
create a new database and add your database credentials to your .env file:
DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret
4. Add Providers :
add the Voyager service provider to the
config/app.php
file in the providers
array:.....'providers' => [....TCG\Voyager\VoyagerServiceProvider::class,Intervention\Image\ImageServiceProvider::class,].....
5. Install Voyager with and without dummy data:
install voyager without dummy data:
php artisan voyager:install
install voyager with dummy data:
php artisan voyager:install --with-dummy
6. Config/Voyager.php file :
in this step you have to run below command and you will find new file config/voyager.php for customize changes.
php artisan vender:public --tag=voyager_assets --force
7. Run laravel Project :
php artisan serve
8. Open below Link :
http://localhost:8000/admin/login
You will have default email and password as listed below :
Email:admin@admin.compassword:password
Suppose above credential do not match then follow below steps :
Create new admin user:
php artisan voyager:admin your@email.com --create
And you will be prompted for the users name and password.
0 comments:
Post a Comment