Skip to content
/ Base Public
forked from Laravel-Backpack/Base

Laravel Backpack's base package, which offers admin authentication and a blank admin panel using AdminLTE

License

Notifications You must be signed in to change notification settings

NJseo/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,
'Prologue\Alerts\AlertsServiceProvider',
  1. Add the alias to the list of aliases in config/app.php:
'Alert' => 'Prologue\Alerts\Facades\Alert',
  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 hello@tabacitu.ro instead of using the issue tracker.

Credits

License

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

About

Laravel Backpack's base package, which offers admin authentication and a blank admin panel using AdminLTE

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 78.1%
  • CSS 21.9%