Laravel 6 Admin Panel Tutorial

By Hardik Savani November 5, 2023 Category : PHP Laravel

Hi Developer,

In this example, i will guide you to create admin panel with laravel 6 using voyager. we will build admin panel in laravel 6. we will use laravel 6 voyager for creating admin pane.

laravel 6 voyager provide to create simple admin pane with following features:

1. User Login & Registration

2. User Management

3. Role Management

4. Media Management

5. Database Manager

6. Setting Page

7. Menu Builder

8. Post Manager

9. Page Manager

10. Compase

As you can see that all features provided by laravel 6 voyager package. there are more feature that they provide, you can see on screenshot too.

Here, i write step by step tutorial to create admin panel in 10 minutes with laravel 6. you can easily customize this admin panel.

You can see bellow preview of admin panel, so you can see how it's looks like and it is a very simple and clean app.

Preview:

Install Laravel 6:

here, you need to download fresh laravel 6 application. so let's run bellow command.

composer create-project --prefer-dist laravel/laravel adminPanel

Update Env File:

In this step, you need to update your configuration on your env file as like bellow:

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 migration command:

php artisan migrate

Install Voyager Composer Package

Here, we need to install voyager composer package. using this package we can install beautiful admin panel.

run following command:

composer require tcg/voyager

Install Voyager

after install successful voyager, we need to install voyager on our laravel 6 application using bellow command:

php artisan voyager:install

Generate Dummy Data

If you want some dummy data, so you understand how it works and which type of data you can enter. So let's run following command to generate dummy data.

php artisan voyager:install --with-dummy

If everything installed well than you can run your application and use following credentials:

php artisan serve

Open following link:

http://localhost:8000/admin

Use following credentials:

Email: admin@admin.com

Password: password

I hope you have nice admin panel now. You can also customize it using this link: Voyager Laravel Admin Panel.

I hope it can help you...

Shares