2017 © Pedro Peláez
 

laravel-package base

Admin interface with login for Laravel

image

laravel-admin/base

Admin interface with login for Laravel

  • Tuesday, September 26, 2017
  • by marcoboom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 186 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 40 % Grown

The README.md

Laravel Admin Interface

Extend your Laravel App with an admin interface out-of-the-box. This packages creates an admin including a login page. The interface is fully compatible with the default bootstrap interface which is included in your Laravel app., (*1)

note: This package is in alpha state, use it in production on own risk., (*2)

Installation

Add this package directly with composer:, (*3)

composer require laravel-admin/base

Add the service provider to your app.php config file, (*4)

LaravelAdmin\Base\BaseServiceProvider::class,

Add the admin middleware in app/Http/Kernel.php file in the $routeMiddleware array., (*5)

'auth.admin' => \LaravelAdmin\Base\Middleware\AuthenticateAdminUser::class

Config

The admin package includes a database migration which adds a role field to your users table. So make sure you run the artisan migrate command., (*6)

You can publish the config, so you can manage this in config/admin.php., (*7)

php artisan vendor:publish --tag=admin-config

Config options

routeGroup

Defining the properties of all admin routes. By default all routes are separated on a specific domain which you can define as ADMIN_URL in your .env file. But is is also possible to use a subdirectory to replace the domain property by a prefix property like 'admin'., (*8)

routeMiddleware

Definition of the middleware what will be used after login. By default you can use the middleware above., (*9)

roles

Array with the available user roles., (*10)

canLogin

Array with the roles who can login in the admin, (*11)

js

Array of js files which will be added to the admin interface, (*12)

css

Array of css files which will be added to the admin interface, (*13)

Your admin menu structure. Fill this array with items that have a name and url attribute. For a second level you can give an item the attribute children to build a subarray with submenu items., (*14)

Usage

Scaffold your base admin routes within your routes/web.php file, (*15)

Admin::routes(function()
{
    // Add your routes
});

Within the closure you can add all your routes on a route group type of definition., (*16)

Now you can access the admin by entering the url as defined in the config. Like http://admin.mydomain.com or http://mydomain.com/admin, (*17)

The Versions

26/09 2017

dev-develop

dev-develop

Admin interface with login for Laravel

  Sources   Download

MIT

02/08 2017

dev-master

9999999-dev

Admin interface with login for Laravel

  Sources   Download

MIT

02/08 2017

0.1.2

0.1.2.0

Admin interface with login for Laravel

  Sources   Download

MIT

28/01 2017

0.1.1

0.1.1.0

Admin interface with login for Laravel

  Sources   Download

MIT

26/01 2017

0.1.0

0.1.0.0

Admin interface with login for Laravel

  Sources   Download

MIT