Hello Buddies,
In this example, I will help you create an admin panel with Laravel 6 with Voyager. We will create the administration window in Laravel 6. We will use Laravel 6 Voyager to create the administration window.
Laravel 6 Voyager offers the possibility to create a simple admin panel with the following functions:
1. User login and registration
2. User administration
3. Role management
4. Media management
5. Database administrator
6. Configuration page
7. Menu creator
8. Post manager
9. Page manager
10. Compas
As you can see, the Laravel 6 Voyager package has all the features. There are other features you can offer. You can also see them in the screenshot.
Here I am writing a step-by-step tutorial to create an admin panel with Laravel 6 in 10 minutes. You can easily customize this admin panel.
You can see what it looks like under the admin panel preview and it is a very simple and clean application.
Install Laravel 6:
Here you have to download the Fresh Laravel 6. application. Therefore, run the following command.
composer create-project --prefer-dist laravel/laravel adminPanel
Update Env File:
In this step, you need to update your settings in your env file as follows:
APP_URL=http://localhost:8000 DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel6_admin DB_USERNAME=root DB_PASSWORD=root
After configuration, you need to run the migration command:
php artisan migrate
Install Voyager Composer Package
Here we have to install the Voyager Composer package. With this package we can install a nice administration panel.
Run the following command:
composer require tcg/voyager
Install Voyager
After successfully installing voyager, we need to install voyager in our Laravel 6 application with the following command:
php artisan voyager:install
Generate Dummy Data
If you want dummy data, you know how it works and what kind of data you can enter. So run the following command to generate dummy data.
php artisan voyager:install --with-dummy
If everything is installed properly, you can run your application and use the following credentials:
php artisan serve
Open the following link:
http://localhost:8000/admin
Use the following credentials:
Email: admin@admin.com Password: password
I hope you now have a good admin panel. You can also customize it.
I hope this tutorial How to create Admin Panel in Laravel 6? could help you .
Thaaaanks….
0 comments:
Post a Comment
Please don't enter any spam link in the comment box.