Darpan
Darpan
FFilament
Created by Darpan on 9/7/2023 in #❓┊help
How to use SpatieMediaLibraryFileUpload in hintAction?
This works, thanks!
13 replies
FFilament
Created by Darpan on 9/7/2023 in #❓┊help
How to use SpatieMediaLibraryFileUpload in hintAction?
Tried this, it does nothing. No record is created.
13 replies
FFilament
Created by Darpan on 9/7/2023 in #❓┊help
How to use SpatieMediaLibraryFileUpload in hintAction?
No, it does not exist in $data, the normal FileUpload works and shows file name in $data but not SpatieMediaLibraryFileUpload. I can't use $this, getting error Using $this when not in object context The following works but I don't think this is the best way to do this.
->action(function ($livewire) {
$data = $livewire->mountedFormComponentActionsData[0];
$image = array_values($data['image'])[0];
$amenity = PropertyAmenity::create([
'name' => $data['name'],
]);

$amenity
->addMedia($image)
->toMediaCollection('image');
})
->action(function ($livewire) {
$data = $livewire->mountedFormComponentActionsData[0];
$image = array_values($data['image'])[0];
$amenity = PropertyAmenity::create([
'name' => $data['name'],
]);

$amenity
->addMedia($image)
->toMediaCollection('image');
})
13 replies
FFilament
Created by Darpan on 9/7/2023 in #❓┊help
How to use SpatieMediaLibraryFileUpload in hintAction?
Possible?
13 replies
FFilament
Created by ded7978 on 9/1/2023 in #❓┊help
Action after "Create"
protected function mutateFormDataBeforeCreate(array $data): array
{
$data['title'] = 'mama';
return $data;
}
protected function mutateFormDataBeforeCreate(array $data): array
{
$data['title'] = 'mama';
return $data;
}
13 replies
FFilament
Created by Darpan on 9/1/2023 in #❓┊help
How to use nested relationship in SelectFilter?
No, it does not work, getting following error: Filament\Tables\Filters\SelectFilter::getRelationship(): Return value must be of type Illuminate\Database\Eloquent\Relations\Relation|Illuminate\Database\Eloquent\Builder, null returned
7 replies
FFilament
Created by GeRaged | Niklas on 9/1/2023 in #❓┊help
Cant override Login Header Title
10 replies
FFilament
Created by Darpan on 9/1/2023 in #❓┊help
How to use nested relationship in SelectFilter?
Thanks for your reply, https://github.com/staudenmeir/belongs-to-through this works well, but it shows city name in filter indicator which can be fixed by using indicateUsing().
SelectFilter::make('state')
->relationship('state', 'name')
->indicateUsing(function ($data): ?string {
if(!$data['value']) {
return null;
}
return 'State: ' . State::find($data['value'])->name;
})
SelectFilter::make('state')
->relationship('state', 'name')
->indicateUsing(function ($data): ?string {
if(!$data['value']) {
return null;
}
return 'State: ' . State::find($data['value'])->name;
})
7 replies
FFilament
Created by Darpan on 8/18/2023 in #❓┊help
Panel domain - CORS Issue - Spatie Media Library File Upload
It works on view page, just not loading on edit page, any suggestions?
11 replies
FFilament
Created by Darpan on 8/4/2023 in #❓┊help
User menu items, route not found
This worked, thanks!
5 replies
FFilament
Created by Darpan on 8/2/2023 in #❓┊help
Search field losing focus
Oh, ok, looks like its fixed now.
5 replies
FFilament
Created by Darpan on 4/10/2023 in #❓┊help
How to prevent already selected value in repeater?
13 replies
FFilament
Created by Darpan on 6/29/2023 in #❓┊help
Select component resets after save or state update
Okay, it worked, thanks!
4 replies
FFilament
Created by Darpan on 6/28/2023 in #❓┊help
Unable to hide default widgets
Oh, yes! My bad, thanks!
6 replies
FFilament
Created by Darpan on 6/28/2023 in #❓┊help
Unable to hide default widgets
'Widgets' => [
'namespace' => 'App\\Filament\\Widgets',
'path' => app_path('Filament/Widgets'),
'register' => [],
],
'Widgets' => [
'namespace' => 'App\\Filament\\Widgets',
'path' => app_path('Filament/Widgets'),
'register' => [],
],
6 replies
FFilament
Created by Darpan on 6/28/2023 in #❓┊help
Unable to hide default widgets
Yes on the dashboard
6 replies
FFilament
Created by Mehmet K. on 4/18/2023 in #❓┊help
Can we bring all the data in the repeater as selected?
I don't think it is possible, right? I have similar issue: https://discord.com/channels/883083792112300104/1035660298369126490/1092693799106523197
9 replies
FFilament
Created by Darpan on 4/18/2023 in #❓┊help
Custom brand logo not showing on live server and Translation also not working?
My bad, I am using github ftp deploy action and I ignored the vendor directory. 🤦‍♂️
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/vendor/**
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/vendor/**
3 replies
FFilament
Created by Darpan on 4/18/2023 in #❓┊help
Custom brand logo not showing on live server and Translation also not working?
3 replies
FFilament
Created by Darpan on 4/13/2023 in #❓┊help
Livewire.js 404 when app is hosted in sub directory
Yes, app url is https://example.com/app but when I change it to https://example.com/app/public it works.
11 replies