Zen
Zen
FFilament
Created by pinpointzero on 10/9/2024 in #❓┊help
Automatic Filament ViewAction on Livewire component
In th view page you can rewrite the mount() function and get $usserId = request()?->id; and get the record from the id or other wise you can just send to its argument using /users/2 instead.
6 replies
FFilament
Created by torgodly on 4/7/2024 in #❓┊help
Multiple Unexpected Fetch Requests Triggered When Closing Modal After Create Action
I think it is a normal behaviour using a Resource Page, where the livewire update will be called every click. This does not happen if creating new Livewire component for this page separately.
5 replies
FFilament
Created by torgodly on 4/7/2024 in #❓┊help
Multiple Unexpected Fetch Requests Triggered When Closing Modal After Create Action
Are you using the default Resource CreateRecord page of the Resource or creating a new external livewire page for the modal?
5 replies
FFilament
Created by Zen on 4/3/2024 in #❓┊help
Export to Excel - sub folder does not get url correctly.
It won't work for me. also got issues on photo url, so I got with making .htaccess to rewrite the file to expected path.
5 replies
FFilament
Created by Zen on 4/6/2024 in #❓┊help
How to display 2 columns widgets on mobile?
modify the view file is the only way. So I make the view file for this and add grid-cols-2 as a defualt to the class.
5 replies
FFilament
Created by Zen on 4/6/2024 in #❓┊help
How to display 2 columns widgets on mobile?
No description
5 replies
FFilament
Created by Shavik on 8/10/2023 in #❓┊help
Date/Time Picker Required
Look like native(false) cannot use with required()
21 replies
FFilament
Created by Zen on 4/1/2024 in #❓┊help
How to cast type from Enum back to string when export to excel
ExportColumn::make('status')->formatStateUsing(function ($state) { return $state->getLabel(); }),
4 replies
FFilament
Created by Anish on 2/19/2024 in #❓┊help
Delete exported file
No description
9 replies
FFilament
Created by Zen on 4/1/2024 in #❓┊help
Error when trying to redirect to Jetstream login page, but happen sometime
Solved by rechaging route('login') to route('/login)
4 replies
FFilament
Created by Augustogany on 3/8/2024 in #❓┊help
Export data
The request here. Basically, it use Queue and will notify in the Notification. Then you can download from Notification. For me, I clean previous exported files and data from DB using this. ` protected function getHeaderActions(): array { return [ Actions\CreateAction::make()->disabled(!PropertyResource::handleVersion()) ->label( fn (): string => PropertyResource::handleVersion() ? 'Create property' : 'Reach demo limit (5 properties)' )->icon('heroicon-o-plus')->keyBindings(['mod+n']), Actions\ExportAction::make()->disabled(!PropertyResource::handleVersion()) ->exporter(PropertyExporter::class) ->columnMapping(false) ->formats([ ExportFormat::Xlsx, ])->label('Export')->color('success') ->icon('carbon-document-export')->keyBindings(['mod+e']) ->before(function () { $this->deleteOldExports(); }), ]; } private function deleteOldExports() { $exports = Export::where('exporter', PropertyExporter::class)->get(); foreach ($exports as $export) { $path = 'filament_exports/' . $export->id; if (Storage::disk('public')->exists($path)) { Storage::disk('public')->deleteDirectory($path); } $export->delete(); } }
2 replies
FFilament
Created by Anish on 2/19/2024 in #❓┊help
Delete exported file
Is there any good answer for this?
9 replies
FFilament
Created by Zen on 3/3/2024 in #❓┊help
How to open multiple records in one page using Table BulkAction?
No description
5 replies
FFilament
Created by Zen on 3/3/2024 in #❓┊help
How to open multiple records in one page using Table BulkAction?
No description
5 replies
FFilament
Created by Zen on 2/25/2024 in #❓┊help
How to run a BulkAction on selected to table records
No description
3 replies
FFilament
Created by Zen on 1/27/2024 in #❓┊help
How I could use view page of Parent Resource view in RelationManager ViewAction()
No description
4 replies