Download the PHP package attargah/admin-bar without Composer
On this page you can find all versions of the php package attargah/admin-bar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download attargah/admin-bar
More information about attargah/admin-bar
Files in attargah/admin-bar
Package admin-bar
Short Description This package adds an admin bar for the front pages of websites built with Filament.
License MIT
Homepage https://github.com/attargah/admin-bar
Informations about the package admin-bar
Admin Bar
Admin Bar is a Laravel package built for Filament that displays a fixed admin bar on the frontend of your site when a user is logged in. This bar provides quick access to the Filament panel and can be easily integrated into various projects with its customizable structure.
๐ง Features
- Fixed top bar display for authenticated users
- Quick access link to the Filament panel
- Customizable settings (logo, title, colors, height, etc.)
- Extendable structure with Filament Render Hook points
โ๏ธ Requirements
- PHP >= 8.1
- Laravel >= 10
- Filament >= 3.0
- Tailwind CSS (for component styling)
๐ Installation
๐ฆ Publishing (Optional)
To publish the default files:
๐งน Usage
Add the plugin to your AdminPanelProvider
:
๐จ Customization
If a logo is defined, the title will not be shown.
If both the logo and title are not defined, the default text Admin Panel will be displayed.
All customizations are using TailwindCSS classes.
๐งฑ Blade Component Usage
Add the following to the Blade file where you want the admin bar to appear:
This component needs Tailwind CSS
to look correct on your page.
The bar will only appear for authenticated users.
To customize further, you can publish and modify the resources/views/components/admin-bar.blade.php
file.
๐ Render Hook Points
To extend the admin bar, use the following render hook points:
Hook Point | Description |
---|---|
BEFORE_TITLE |
Before the title |
AFTER_TITLE |
After the title |
BEFORE_AUTH_MENU |
Before the auth user menu |
AFTER_AUTH_MENU |
After the auth user menu |
BEFORE_AUTH_MENU_ITEMS |
Before the menu items |
AFTER_AUTH_MENU_ITEMS |
After the menu items |
BETWEEN_AUTH_MENU_ITEMS |
Between each menu item |
Example: Adding a new item to the auth menu
For more, check out the Filament Render Hooks documentation.
๐ Translations
To customize translations, publish the resources/lang/en/admin-bar.php
file:
๐ License
This project is licensed under the MIT license.
๐ค Contributing
Visit our GitHub page for pull requests and bug reports:
๐ https://github.com/attargah/admin-bar
All versions of admin-bar with dependencies
filament/filament Version ^3.0|^4.0
spatie/laravel-package-tools Version ^1.15.0