Last active
September 4, 2025 07:09
-
-
Save neverything/4c8cd3c072c6505c2d9626e5851c62bc to your computer and use it in GitHub Desktop.
Laravel Cloud Navigation in Filament v4: Full tutorial and code https://silvanhagen.com/writing/laravel-cloud-navigation-in-filament/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Livewire; | |
| use Filament\Actions\Concerns\InteractsWithActions; | |
| use Filament\Actions\Contracts\HasActions; | |
| use Filament\Livewire\Concerns\HasTenantMenu; | |
| use Filament\Livewire\Concerns\HasUserMenu; | |
| use Filament\Schemas\Concerns\InteractsWithSchemas; | |
| use Filament\Schemas\Contracts\HasSchemas; | |
| use Illuminate\Contracts\View\View; | |
| use Livewire\Attributes\On; | |
| use Livewire\Component; | |
| class CustomTopbar extends Component implements HasActions, HasSchemas | |
| { | |
| use HasTenantMenu; | |
| use HasUserMenu; | |
| use InteractsWithActions; | |
| use InteractsWithSchemas; | |
| #[On('refresh-topbar')] | |
| public function refresh(): void {} | |
| public function render(): View | |
| { | |
| return view('livewire.custom-topbar'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment