mramadan0101 / laravel-admin
Laravel admin builder for CRUD backends, maintained for PHP 8.2+ and Laravel 10-12
Requires
- php: ^8.2
- laravel/framework: ^10.0|^11.0|^12.0
- symfony/dom-crawler: ^6.0|^7.0
Requires (Dev)
- fakerphp/faker: ^1.23
- intervention/image: ^2.7
- orchestra/testbench-browser-kit: ^8.0|^9.0|^10.0
- phpunit/phpunit: ^10.5|^11.0
Suggests
- intervention/image: Required to handling and manipulation upload images (^2.7).
- spatie/eloquent-sortable: Required to built orderable gird.
Provides
None
Conflicts
None
Replaces
None
- 2.x-dev
- dev-master / 2.x-dev
- v2.0.0
- v1.6.12
- v1.6.11
- v1.6.10
- v1.6.9
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- 1.5.x-dev
- v1.5.19
- v1.5.18
- v1.5.17
- v1.5.16
- v1.5.15
- v1.5.14
- v1.5.13
- v1.5.12
- v1.5.11
- v1.5.10
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- 1.4.x-dev
- v1.4.6
- v1.4.5
- v1.4.4
- v1.4.1
- 1.3.x-dev
- v1.3.4
- v1.3.3
- 1.2.x-dev
- v1.2.10
- v1.2.9
- v1.2.8
- v1.2.6
- 1.1.x-dev
- v1.1.6
- dev-patch-2
- dev-patch-1
- dev-analysis-zR39px
- dev-analysis-XZ6ZPn
- dev-analysis-871gA6
- dev-analysis-8bnPnw
- dev-develop
This package is auto-updated.
Last update: 2026-11-01 20:17:25 UTC
README
Administrative interface builder for Laravel. Build CRUD backends with a few lines of code.
Repository | Upgrade guide | Extensions | Contribute
Maintained independently from z-song/laravel-admin.
The PHP namespace stays Encore\Admin. The Packagist name is mramadan0101/laravel-admin.
Requirements
- PHP >= 8.2
- Laravel 10, 11 or 12
- Fileinfo PHP Extension
Versions
| Version | Branch | PHP | Laravel | Frontend | Status |
|---|---|---|---|---|---|
| 2.x | master |
8.2+ | 10 – 12 | AdminLTE 4, Bootstrap 5.3, jQuery 3.7, Font Awesome 6 | active |
| 1.x | 1.x |
7.2 – 8.x | 6 – 8 | AdminLTE 2, Bootstrap 3.4.1, jQuery 3.7 + migrate, FA 4 | legacy |
master is the 2.x line. Upgrading an existing 1.x app? Read UPGRADE.md.
Installation
composer require mramadan0101/laravel-admin
Do not install this next to the original encore/laravel-admin package. Both ship the Encore\Admin namespace, so remove the old one first if it is already in the application.
Publish the assets and install the admin tables:
php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
php artisan admin:install
The config file is config/admin.php. It controls the route prefix, database connection, and table names.
Open http://localhost/admin/ and log in with username admin and password admin.
Configurations
config/admin.php holds the admin settings.
Right to left support
The RTL build of AdminLTE loads automatically for right-to-left locales (ar, fa, he, ur, ...).
Set rtl in config/admin.php to true or false to force it on or off.
Dark mode
Set theme in config/admin.php to light, dark or auto. Users can switch the color mode from the navbar.
Global search
The navbar search box (/ or Ctrl+K) searches the menu and every model you register, for example in app/Admin/bootstrap.php:
Admin::globalSearch(App\Models\Post::class) ->label('Posts') ->columns(['title', 'author.name']) // `relation.column` searches through a relation ->subtitle('author.name') ->url('posts/{id}/edit') ->permission('posts'); // hidden from users without this permission
You can also list resources under global_search.resources in config/admin.php.
Trash for soft deletes
For models that use SoftDeletes, $grid->enableTrash() adds an All / Trash switch to the grid. Deleting a row still only soft-deletes it. In the trash view each row, or a batch selection, can be restored or deleted permanently.
Security
- Two-factor authentication: each admin can turn on TOTP (Google Authenticator, Authy, 1Password, ...) from Settings. Recovery codes are included. Disable the feature with
ADMIN_TWO_FACTOR=false. - Login throttling: 5 failed attempts per username and IP lock the login for 60 seconds (
auth.throttle). - Operation log: passwords, tokens and 2FA codes are masked. Add more keys in
operation_log.hidden_fields. - Uploads: files get random names so they can't overwrite each other. Use
->originalName()to keep the client file name.
Extensions
These extensions were written for laravel-admin 1.x. Check each one before using it with 2.x.
| Extension | Description | laravel-admin |
|---|---|---|
| helpers | Several tools to help you in development | ~1.5 |
| media-manager | Provides a web interface to manage local files | ~1.5 |
| api-tester | Help you to test the local laravel APIs | ~1.5 |
| scheduling | Scheduling task manager for laravel-admin | ~1.5 |
| redis-manager | Redis manager for laravel-admin | ~1.5 |
| backup | An admin interface for managing backups | ~1.5 |
| log-viewer | Log viewer for laravel | ~1.5 |
| config | Config manager for laravel-admin | ~1.5 |
| reporter | Provides a developer-friendly web interface to view the exception | ~1.5 |
| wangEditor | A rich text editor based on wangeditor | ~1.6 |
| summernote | A rich text editor based on summernote | ~1.6 |
| china-distpicker | 一个基于distpicker的中国省市区选择器 | ~1.6 |
| simplemde | A markdown editor based on simplemde | ~1.6 |
| phpinfo | Integrate the phpinfo page into laravel-admin |
~1.6 |
| php-editor python-editor js-editor css-editor clike-editor |
Several programing language editor extensions based on code-mirror | ~1.6 |
| star-rating | Star Rating extension for laravel-admin | ~1.6 |
| json-editor | JSON Editor for Laravel-admin | ~1.6 |
| grid-lightbox | Turn your grid into a lightbox & gallery | ~1.6 |
| daterangepicker | Integrates daterangepicker into laravel-admin | ~1.6 |
| material-ui | Material-UI extension for laravel-admin | ~1.6 |
| sparkline | Integrates jQuery sparkline into laravel-admin | ~1.6 |
| chartjs | Use Chartjs in laravel-admin | ~1.6 |
| echarts | Use Echarts in laravel-admin | ~1.6 |
| simditor | Integrates simditor full-rich editor into laravel-admin | ~1.6 |
| cropper | A simple jQuery image cropping plugin. | ~1.6 |
| composer-viewer | A web interface of composer packages in laravel. | ~1.6 |
| data-table | Advanced table widget for laravel-admin | ~1.6 |
| watermark | Text watermark for laravel-admin | ~1.6 |
| google-authenticator | Google authenticator | ~1.6 |
Contribute
Bug reports and pull requests are welcome. Read CONTRIBUTING.md for how to report a bug and how the master and 1.x branches differ.
People who already contributed
Other
2.x is built on:
- Laravel
- AdminLTE 4
- Bootstrap 5
- jQuery
- Font Awesome
- flatpickr
- select2
- bootstrap-fileinput
- jquery-pjax
- Nestable
- toastr
- SweetAlert2
- OverlayScrollbars
- fontawesome-iconpicker
License
laravel-admin is licensed under The MIT License (MIT).