Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
/ Base Public archive

Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.

License

Notifications You must be signed in to change notification settings

Laravel-Backpack/Base

Repository files navigation

Backpack\Base

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Style CI Total Downloads

Laravel BackPack's central package, which includes:

  • admin login interface, using AdminLTE;
  • basic menu;
  • pretty error pages;
  • alerts system (notification bubbles);

Subscribe to the newsletter to be announced of any major updates or breaking changes.

Example generated CRUD interface

Install

  1. Run in your terminal:
$ composer require backpack/base
  1. Add the service providers in config/app.php:
Backpack\Base\BaseServiceProvider::class,
  1. Then run a few commands in the terminal:
$ rm -rf app/Http/Controllers/Auth #deletes laravel's demo auth controllers
$ php artisan vendor:publish --provider="Backpack\Base\BaseServiceProvider" #publishes configs, langs, views and AdminLTE files
$ php artisan vendor:publish --provider="Prologue\Alerts\AlertsServiceProvider" # publish config for notifications - prologue/alerts
$ php artisan migrate #generates users table (using Laravel's default migrations)
  1. [optional] Change values in config/backpack/base.php to make the admin panel your own. Change menu color, project name, developer name etc.

  2. [optional] If you want to be able to use the Reset Password functionality, you need to specify to Laravel to use the Backpack email for this. At the end of your \config\auth.php file, change:

'passwords' => [
        'users' => [
            'provider' => 'users',
            'email' => 'backpack::auth.emails.password', // <--- change is here
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

Usage

  1. Register a new user at yourappname/admin/register
  2. Your admin panel will be available at yourappname/admin or yourappname/login
  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.

Example generated CRUD interface

Change log

Please see CHANGELOG for more information what has changed recently.

Todos

// TODO - instruct developer on how to modify/extend the AuthController and PasswordController and/or provide example

Testing

// TODO

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.

Topics

Resources

License

Stars

Watchers

Forks