• This repository has been archived on 23/Nov/2020
  • Stars
    star
    891
  • Rank 51,222 (Top 2 %)
  • Language
    PHP
  • License
    Other
  • Created over 8 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

Maintained Build Status Quality Score Style CI Total Downloads

Note: This package is only used by Backpack v3. Starting with Backpack v4, everything this package does is included in Backpack/CRUD - one package to rule them all.

Laravel Backpack v3.x's central package, which includes:

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

Install on Laravel 7.x, 8.x and up

Since September 2019, when we released Backpack 4.x, this package is no longer used. Only Backpack 3.x uses Backpack\Base, and Backpack 3.x will not receive support for Laravel 7.x, 8.x and above. We do encourage you to use Backpack + Laravel 7/8/up, but to do that please use the latest major version of Backpack.

Install on Laravel 6, 5.8, 5.7, 5.6 or 5.5

  1. Run in your terminal:
composer require backpack/base
php artisan backpack:base:install
  1. Make sure the reset password emails have the correct reset link by adding these to your User model:
  • before class name use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
  • as a method inside the User class:
  /**
   * Send the password reset notification.
   *
   * @param  string  $token
   * @return void
   */
  public function sendPasswordResetNotification($token)
  {
      $this->notify(new ResetPasswordNotification($token));
  }
  1. [optional] Change values in config/backpack/base.php to make the admin panel your own. Change menu color, project name, developer name etc.

Upgrades

Upgrading from Laravel 5.8 to Laravel 6

  • just upgrade your Laravel version and make sure you're running Backpack/Base 1.1.9 or higher;

Upgrading from Laravel 5.7 to Laravel 5.8 (or from Base 1.0 to Base 1.1)

  • Upgrade to Laravel 5.8; you might need to change your backpack/crud dependency to 3.6.* in your composer.json;
  • in your App\Models\BackpackUser instead of Tightenco\Parental\HasParent, please use Backpack\Base\app\Models\Traits\InheritsRelationsFromParentModel; here's the diff;
  • in your app/config/backpack/base.php please change your default_date_format and default_datetime_format to Do MMMM YYYY and Do MMMM YYYY, HH:mm respectively;
  • if you've overwritten inc/head.blade.php or inc/scripts.blade.php, please make sure you use the newest version of Bootstrap; they've fixed a security vulnerability (XSS);

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

Overwriting Functionality

If you need to modify how this works in a project:

  • create a routes/backpack/base.php file; the package will see that, and load your routes file, instead of the one in the package;
  • create controllers/models that extend the ones in the package, and use those in your new routes file;
  • modify anything you'd like in the new controllers/models;

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

Officially this package has:

  • stopped receiving updates in Sep 2019;
  • stopped receiving security updates in Sep 2020;

However, if you discover any security related issues, please email [email protected] and we'll probably push an update nonetheless. Or at least inform people who are still using this version of the vulnerability. We take security seriously, so we'll go above and beyond to make sure our users' admin panels are safe.

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Credits

License

Backpack is free for non-commercial use and 69 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information.

Hire us

We've spend more than 50.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels so much, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience & enthusiasm for this. This is what we do. Contact us. Let's see if we can work together.

More Repositories

1

CRUD

Build custom admin panels. Fast!
PHP
2,816
star
2

PermissionManager

Admin interface for managing users, roles, permissions, using Backpack CRUD
PHP
481
star
3

BackupManager

Admin interface for managing database and file backups in Backpack for Laravel
PHP
305
star
4

demo

A working demo of Laravel with all Backpack packages installed.
PHP
301
star
5

Generators

Generate files for Backpack projects
PHP
296
star
6

PageManager

Administer presentation pages in Laravel, using page templates and Backpack\CRUD
PHP
279
star
7

LogManager

An interface to preview, download and delete Laravel log files, using Backpack.
PHP
261
star
8

Settings

Application settings interface for Backpack (for Laravel 6).
PHP
228
star
9

NewsCRUD

An admin panel for news with categories and tags, using Backpack CRUD on Laravel 10
PHP
205
star
10

MenuCRUD

An admin panel for menu items, using Backpack\CRUD on Laravel 6 or 7.
Blade
182
star
11

LangFileManager

A quick interface to edit Laravel language files, for Backpack.
PHP
90
star
12

FileManager

Admin interface for files & folders, using elFinder.
PHP
79
star
13

docs

45
star
14

revise-operation

An admin interface for venturecraft/revisionable - audit log for your Eloquent entries.
PHP
42
star
15

basset

Better asset helpers for Laravel apps.
PHP
36
star
16

community-forum

A workspace to discuss improvement and feature ideas, before they're actually implemented.
25
star
17

theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.
Blade
16
star
18

activity-log

PHP
13
star
19

download-operation

PHP
10
star
20

medialibrary-uploaders

PHP
8
star
21

language-switcher

Multi language dropdown for Backpack v6
PHP
7
star
22

addons

A place for the Backpack community to talk about possible Backpack add-ons.
5
star
23

theme-coreuiv2

UI that uses CoreUI v2 and Bootstrap v4, provided as a legacy theme for Backpack v6.
Blade
4
star
24

theme-coreuiv4

UI for Backpack v6 that uses CoreUI v4 and Bootstrap v5.
Blade
3
star
25

devtools-issues

Bug reports and feature requests for our closed-source DevTools package
3
star
26

legal-documents

All legal documents for the Backpack organisation. Full transparency.
1
star