Skip to content

Instantly share code, notes, and snippets.

View B-Carcamo's full-sized avatar

B.carcamo B-Carcamo

  • Costa Rica
View GitHub Profile
@B-Carcamo
B-Carcamo / AdminPanelProvider.php
Created October 25, 2023 05:28
Change logo from dark to light in filament v3
<?php
//add darkModeBrandLogo() method to AdminPanelProvider.php file
use Filament\Panel;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->darkModeBrandLogo(fn () => view('filament.logo.dark'))
->brandLogo(fn () => view('filament.logo.light'))
@B-Carcamo
B-Carcamo / AppServiceProvider.php
Last active October 20, 2023 04:26
How to change the path from logout(admin/login) to Home (/) in filament 3 - laravel
<?php
//We perform the tasks in the AppServiceProvider file (file in the App/Providers folder) inside the boot function.
use App\Filament\Logout;
use Filament\Http\Responses\Auth\Contracts\LogoutResponse as LogoutResponseContract;
// ...
public function boot()
{