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.
- Run in your terminal:
$ composer require backpack/base
- Add the service providers in config/app.php:
Backpack\Base\BaseServiceProvider::class,
'Prologue\Alerts\AlertsServiceProvider',
- Add the alias to the list of aliases in config/app.php:
'Alert' => 'Prologue\Alerts\Facades\Alert',
- 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)
-
[optional] Change values in config/backpack/base.php to make the admin panel your own. Change menu color, project name, developer name etc.
-
[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,
],
],
- Register a new user at yourappname/admin/register
- Your admin panel will be available at yourappname/admin or yourappname/login
- [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.
Please see CHANGELOG for more information what has changed recently.
// TODO - instruct developer on how to modify/extend the AuthController and PasswordController and/or provide example
// TODO
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email hello@tabacitu.ro instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.