https://github.com/murdercode/laravel-admin-bar
A great admin bar for your Laravel application
https://github.com/murdercode/laravel-admin-bar
Last synced: 7 months ago
JSON representation
A great admin bar for your Laravel application
- Host: GitHub
- URL: https://github.com/murdercode/laravel-admin-bar
- Owner: murdercode
- License: mit
- Created: 2022-12-06T08:50:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-04T10:14:26.000Z (8 months ago)
- Last Synced: 2025-07-15T08:09:34.802Z (7 months ago)
- Language: Blade
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Admin Bar
[](https://packagist.org/packages/murdercode/laravel-admin-bar)
[](https://github.com/murdercode/laravel-admin-bar/actions/workflows/run-tests.yml)
[](https://github.com/murdercode/laravel-admin-bar/actions/workflows/fix-php-code-style-issues.yml)
[](https://packagist.org/packages/murdercode/laravel-admin-bar)
A simple, but powerful, package for include an Admin bar (like Wordpress) in your next fantastic Laravel project.
## Requirements
| Package Version | Requirement | Version |
|---------------------|-------------|--------------|
| 1.x.x | Laravel | 10.x or 11.x |
| 1.x.x | Nova | 4.x |
| dev-beta-laravel-12 | Laravel | 12.x |
| dev-beta-laravel-12 | Nova | 5.x |
## Installation
You can install the package via composer:
```bash
composer require murdercode/laravel-admin-bar
```
You can publish the config file with:
```bash
php artisan vendor:publish --tag="admin-bar-config"
```
This is the contents of the published config file:
```php
[
'show3labsLogo' => true,
'theme' => 'dark', // 'light' or 'dark'
'max-width' => '1200px',
'position' => 'bottom', // 'top' or 'bottom'
'font-size' => '14px',
],
'config' => [
'adminUrl' => '/cms',
'editPost' => [
'enabled' => true,
'uris' => ['articoli/{slug}', 'notizie/{slug}', 'recensioni/{slug}'], // detect the current route as defined in your routes/web.php
'wildcard' => 'slug', // the wildcard for the parameter (as over)
'parameterForSearch' => 'slug', // the parameter to be used for search the post
'model' => \App\Models\Post::class, // the model to be used for search the post
'parameterToReturn' => 'id', // the value to be returned
'targetEndpointUrl' => '/cms/resources/posts/{parameter}',
],
'emptyCachePost' => [
'enabled' => true,
'uris' => ['articoli/{slug}', 'notizie/{slug}', 'recensioni/{slug}'], // detect the current route as defined in your routes/web.php
'wildcard' => 'post', // the wildcard for the parameter (as over)
'parameterForSearch' => 'slug', // the parameter to be used for search the post
'model' => \App\Models\Post::class, // the model to be used for search the post
'parameterToReturn' => 'id', // the value to be returned
'targetEndpointUrl' => '/posts/{parameter}?nocache',
],
],
];
```
Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="laravel-admin-bar-views"
```
## Usage
In any part of your layout you can include the admin bar using the following code:
```php
{{LaravelAdminBar::render()}}
```
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Stefano Novelli](https://github.com/murdercode)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.