Backpack for Laravel

Backpack for Laravel

A collection of Laravel packages to build a custom admin panel.

Documentation    Support

The best way to see if you like Backpack is to install a working demo of Laravel with all Backpack packages pre-installed.

However, if you do like it, please install it using the recommended installation procedure. That will take you through each package individually and you'll end up understanding how it works a lot better.

Please don't use this to start your real projects

Unless all Backpack packages are needed in your new project, you'll end up having packages that you're not using in your vendor/ folder.

1) Run in your terminal:

$ git clone https://github.com/Laravel-Backpack/demo.git backpack-demo

2) Set your database information in your .env file (use the .env.example as an example);

3) Run in your backpack-demo folder:

$ composer install
$ php artisan key:generate
$ php artisan migrate
$ php artisan db:seed --class="Backpack\Settings\database\seeds\SettingsTableSeeder"

Usage

Once your database has been seeded, you will be able to create your own admin user.

  1. Register a new user at http://backpack.dev/admin/register
  2. Your admin panel will be available at http://backpack.dev/admin
  3. [optional] If you're building an admin panel, you should close the registration. In config/backpack/base.php look for "registration_open" and change it to false.
  4. The real benefit of Backpack is not in its packages, but in how easy it is to code something custom. Go through the CRUD How it works to understand it, then create a CRUD panel for an entity, using the fast procedure outlined at the end of that page. Say... Product.

vhost configurations

Depending on your vhost configuration you might need to access the application via a different url, for example if you're using artisan serve you can access it on http://127.0.0.1:8000/admin/register - if you're using laravel valet, then it may look like http://backpack-demo.dev/admin/register - you will need to access the url which matches your systems configuration. If you do not understand how to configure your virtual hosts, we suggest watching Laracasts Episode #1 to quickly get started https://laracasts.com/series/laravel-from-scratch/episodes/1

Demo