Skip to content

Instantly share code, notes, and snippets.

@neverything
Last active September 4, 2025 07:09
Show Gist options
  • Save neverything/4c8cd3c072c6505c2d9626e5851c62bc to your computer and use it in GitHub Desktop.
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/
<?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