Download the PHP package jeffersongoncalves/laravel-admin without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-admin
More information about jeffersongoncalves/laravel-admin
Files in jeffersongoncalves/laravel-admin
Package laravel-admin
Short Description Separate Admin authenticatable model with its own guard, provider, password broker, migration, factory and observer for Laravel.
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-admin
Informations about the package laravel-admin

Laravel Admin
Separate Admin authenticatable model with its own admin guard, admins provider and password broker, plus migration, factory and observer.
Your app keeps its own App\Models\Admin and extends the package model, so admins live in their own table, fully apart from users.
Installation
Publish and run the migration:
Usage
Point the admins provider to your model in config/auth.php:
Guard, provider and password broker
The service provider registers these only when config/auth.php does not define them already (your config always wins):
| Key | Default |
|---|---|
auth.guards.admin |
session driver, admins provider |
auth.providers.admins |
eloquent, JeffersonGoncalves\Admin\Models\Admin |
auth.passwords.admins |
admins provider, same token table as users, 60 min expiry/throttle |
What the base model gives you
| Feature | Details |
|---|---|
| Columns | status, name, email, email_verified_at, password, remember_token, avatar_url, custom_fields, locale, theme_color |
| Casts | password hashed, status boolean, custom_fields array, email_verified_at datetime |
| Factory | Admin::factory() with unverified() and inactive() states. It creates the model set in auth.providers.admins.model |
| Observer | Clears the admins_count cache key on create/delete (inherited by subclasses) |
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Jefferson Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-admin with dependencies
laravel/framework Version ^12.61.1|^13.12.0
spatie/laravel-package-tools Version ^1.16