Download the PHP package aymanalhattami/filament-page-with-sidebar without Composer
On this page you can find all versions of the php package aymanalhattami/filament-page-with-sidebar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aymanalhattami/filament-page-with-sidebar
More information about aymanalhattami/filament-page-with-sidebar
Files in aymanalhattami/filament-page-with-sidebar
Package filament-page-with-sidebar
Short Description Organize resource pages in sidebar instead of putting all the buttons and links elsewhere in order to make navigation between pages more comfortable.
License MIT
Informations about the package filament-page-with-sidebar
Filament Page With Sidebar
Organize pages in the sidebar in order to make navigation between pages more comfortable.
Note: It supports both pages and resource pages.
Note: For Filament 2.x use version 1.x
Screenshots
LTR (Left to Right)
RTL (Right to Left)
Please check out this video by Povilas Korop (Laravel Daily) to learn more about our package: link
Installation
optionally you can publish config, views and components files
Usage with Resource Pages
-
First you need to prepare resource pages, for example, we have an edit page, view page, manage page, change password page, and dashboar page for UserResource
-
Define a $record property in each custom page, example
-
Then, define the sidebar method as static in the resource
- Use x-filament-page-with-sidebar::page component in the page blade file as a wrapper for the whole content
or add the trait on any page you want the sidebar included. This trait will add the sidebar to the Page. Add it to all your Resource Pages :
If you want to use custom view, you can still overwrite the default value with and
Usage with Page
- Add the trait on any page you want the sidebar included.
- Then, define the sidebar method as static in the page
More Options
Set title and description for sidebar
You can set the title or description by using setTitle, setDescription, setDescriptionCopyable methods for the sidebar that will be at the beginning of the sidebar on the top, for example
Set navigation layout
You can set navigation as sidebar by using or as topbar by using . The default layout is sidebar
Sidebar
Topbar
Add icon
You can add an icon to the item by using the icon method, for example
Add group
You may group navigation items, for example
Set active item
You can make an item active "has a different background color" by using isActiveWhen method, for example
Hide the item
You can control the visibility of an item from the sidebar by using visible method, for example
Add bage to the item
You can add a badge to the item by using the badge method, for example
Translate the item
You can translate a label by using translateLabel method, for example
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-page-with-sidebar with dependencies
spatie/laravel-package-tools Version ^1.0
laravel/framework Version ^10.0|^11.0