Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Base Laravel Package

laravel-admin/base

Alpha Laravel package that adds a Bootstrap-compatible admin interface with login and role-based access. Includes migrations and configurable routes (domain or /admin prefix), middleware, roles, menu, and extra CSS/JS. Scaffold admin routes via Admin::routes().

View on GitHub
Deep Wiki
Context7

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.

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

Installation

Add this package directly with composer:

composer require laravel-admin/base

Add the service provider to your app.php config file

LaravelAdmin\Base\BaseServiceProvider::class,

Add the admin middleware in app/Http/Kernel.php file in the $routeMiddleware array.

'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.

You can publish the config, so you can manage this in config/admin.php.

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'.

routeMiddleware

Definition of the middleware what will be used after login. By default you can use the middleware above.

roles

Array with the available user roles.

canLogin

Array with the roles who can login in the admin

js

Array of js files which will be added to the admin interface

css

Array of css files which will be added to the admin interface

menu

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.

Usage

Scaffold your base admin routes within your routes/web.php file

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

Within the closure you can add all your routes on a route group type of definition.

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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed