DEV Community

MD Sarfaraj for This is Learning

Posted on • Updated on

An admin panel for your Laravel application.

In this article, I'd like to share a pre-built admin panel for your Laravel application. So, without further ado, let us get started.

When you are creating an application in Laravel then there are many chances that you need an admin panel. So here is a free and open-source admin panel, whose name is Voyager.

What is Voyager?

Voyager is a free and open-source admin panel for the Laravel application. It will take care of your administrative tasks and database tables.

Here are some features of Voyager:

  • Voyager has BREAD(Browse, Read, Edit, Add and Delete) functionality. So you can easily do BREAD operation on your post, pages, or any other tables in your database.

  • Voyager has a menu builder feature. So you can easily create the menu for your site and you can use it anywhere on your site.

  • Voyager has database manager support. So it will give you the facility to create a new table in your database and you can modify the existing table as per your need.

  • Voyager has a setting section. So you can create your custom settings and you can use those settings on your site anywhere.

  • Voyager has a Role and Permission section where you can give certain roles to a specific user and you can modify that roles later also.

In Voyager, there are many features, and I have listed a few of the important ones for you to know.

How to install Voyager?

Before proceeding with the Voyager installation, make sure you are using Laravel 6/Laravel 7/Laravel 8/Laravel 9 along with PHP 7.3 or later.

The Voyager admin panel is very easy to install, you can do it through composer.

To install Voyager without dummy data simply run.

php artisan voyager:install
Enter fullscreen mode Exit fullscreen mode

If you prefer installing it with the dummy data run the following command.

php artisan voyager:install --with-dummy
Enter fullscreen mode Exit fullscreen mode

After successful installation, serve your application with the following command:

php artisan serve
Enter fullscreen mode Exit fullscreen mode

After that type the below URL in your browser:
http://localhost:8000/admin

If you installed Voyager with dummy data then here are the login credentials.

email: admin@admin.com 
password: password
Enter fullscreen mode Exit fullscreen mode

Now the installation process is done.

Conclusion

If you are creating your application in Laravel and you need an admin panel then It's better to use Voyager because it will save your time, it is free of cost, and It has many pre-built features.

I hope this article is useful to you.

Resources

https://voyager.devdojo.com/
https://github.com/the-control-group/voyager
https://voyager-docs.devdojo.com/

Top comments (0)