Dan-webplusm
Dan-webplusm
TLCTuto's Laravel Corner
Created by North on 6/23/2024 in #💡filament
State - City select fields
Select::make('author_id')
->searchable()
->getSearchResultsUsing(fn (string $search): array => User::where('name', 'like', "%{$search}%")->limit(50)->pluck('name', 'id')->toArray())
->getOptionLabelUsing(fn ($value): ?string => User::find($value)?->name),
Select::make('author_id')
->searchable()
->getSearchResultsUsing(fn (string $search): array => User::where('name', 'like', "%{$search}%")->limit(50)->pluck('name', 'id')->toArray())
->getOptionLabelUsing(fn ($value): ?string => User::find($value)?->name),
5 replies
TLCTuto's Laravel Corner
Created by North on 6/23/2024 in #💡filament
State - City select fields
5 replies
TLCTuto's Laravel Corner
Created by karim_Jäger on 6/10/2024 in #💡filament
Filter Filament Project Resources Based on Authenticated User's Team
User -> Teams -> Projects : auth()->user()->teams->projects : I suppose it would be this , the list of projects in a select. May be you probably need tenants
6 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
O_O , i saw my mistake on updating , just need to update the data with $this->form->getState(), not $this->data. Oh my bad ...
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
Thank fully for your timeshare 👍
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
manually, it's save. but if i try to remove that image, it's remove only on the component, not the file. Maybe i need to did it myself ?
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
yes, it 's just for an update page form. all work very well, since i decided to add the uploadField
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
yes, i knew it. It 's why i tell to show me if you have an exemple of that. this look like a bug in page
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
humm, my page is extends Page
class EnterpriseProfile extends Page
class EnterpriseProfile extends Page
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
ok, let's try that
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
and same when delete the file, nothing happen lol
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
i try, minFiles, etc ...
20 replies
FFilament
Created by Dan-webplusm on 6/6/2024 in #❓┊help
FileUpload on a custom page won't work as expect ...
Just same as the doc
Forms\Components\FileUpload::make('attachment')
->disk('public')
->directory('logos')
->acceptedFileTypes(['image/png', 'image/webp', 'image/svg+xml']),

// in my save method
$path = $file->store('logos','public');
Forms\Components\FileUpload::make('attachment')
->disk('public')
->directory('logos')
->acceptedFileTypes(['image/png', 'image/webp', 'image/svg+xml']),

// in my save method
$path = $file->store('logos','public');
20 replies
FFilament
Created by Daniel on 6/6/2024 in #❓┊help
How do Custom Components actually work? Can someone explain it to me?
too, mdr 👍
6 replies
FFilament
Created by Daniel on 6/6/2024 in #❓┊help
How do Custom Components actually work? Can someone explain it to me?
<iframe src="https://iframe.mediadelivery.net/embed/249784/{{ $record->key }}" width="640" height="360" allowfullscreen></iframe>
6 replies
FFilament
Created by Daniel on 6/6/2024 in #❓┊help
How do Custom Components actually work? Can someone explain it to me?
May be need {{ ...}} on record, not only one {
6 replies
FFilament
Created by Renzo on 4/24/2024 in #❓┊help
FileUpload field inside an Infolist
No description
11 replies
FFilament
Created by Ilham Dimas Prayudha on 12/9/2023 in #❓┊help
CreateOptionForm Modal Width
Why use this ? check the doc : https://discord.com/channels/883083792112300104/1183058929341714482/1232475553190252598
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Components\Select;

Select::make('author_id')
->relationship(name: 'author', titleAttribute: 'name')
->createOptionAction(
fn (Action $action) => $action->modalWidth('3xl'),
)
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Components\Select;

Select::make('author_id')
->relationship(name: 'author', titleAttribute: 'name')
->createOptionAction(
fn (Action $action) => $action->modalWidth('3xl'),
)
10 replies
FFilament
Created by Renzo on 4/24/2024 in #❓┊help
FileUpload field inside an Infolist
ok
11 replies
FFilament
Created by Renzo on 4/24/2024 in #❓┊help
FileUpload field inside an Infolist
thanks for that, 😛
11 replies