Danny
Danny
FFilament
Created by Jawwad on 6/19/2024 in #❓┊help
The rich text editor is not loading the content on update of record.
Hi, Did you get to the bottom of this? I'm seeing the same error in my local environment. Filament v3.2.109.
10 replies
FFilament
Created by Danny on 6/26/2024 in #❓┊help
Deleting a tenant with EditTeamProfile.php
Got it! If anyone else is hitting their head with this. Here's how I solved it: protected function getHeaderActions(): array { $user = auth()->user(); if ($this->tenant->id != $user->team_id) { return [ Actions\Action::make('Delete location') ->name('delete') ->icon('heroicon-m-x-mark') ->color('danger') ->requiresConfirmation() ->action(function (Team $team) { $this->tenant->delete(); redirect(route('filament.dashboard.pages.dashboard', [ 'tenant' => auth()->user()->team_id ])); Notification::make() ->success() ->title('Location deleted') ->body('The location has been deleted.') ->send(); }), ]; } else { return []; } }
4 replies