Harvey
Harvey
FFilament
Created by Harvey on 10/23/2024 in #❓┊help
How to import Alpine in custom script
Cheers, all working.
10 replies
FFilament
Created by Harvey on 10/23/2024 in #❓┊help
How to import Alpine in custom script
Well the error is gone... so I think this was it thanks😄 Will accept it once I test it
10 replies
FFilament
Created by Harvey on 10/23/2024 in #❓┊help
How to import Alpine in custom script
Alpine.data('popup', () => ({
open: false,
}));
Alpine.data('popup', () => ({
open: false,
}));
Register a reusable Alpine data obj
10 replies
FFilament
Created by Harvey on 10/23/2024 in #❓┊help
How to import Alpine in custom script
Already using that command. Unfortunately, just copies it to the public folder.
10 replies
FFilament
Created by Harvey on 10/22/2024 in #❓┊help
Collapsible Content - Keep Column Headers
Thanks. Suspected this might be the case.
5 replies
FFilament
Created by Harvey on 8/13/2024 in #❓┊help
Spatie/translatable cannot mutate prop $activeLocale in relation manager
Update: Can bodge it by adding
public function __construct()
{
$this->activeLocale = config('app.locale');
}
public function __construct()
{
$this->activeLocale = config('app.locale');
}
to the relation manager
2 replies
FFilament
Created by Harvey on 4/29/2024 in #❓┊help
Reuse macro callbacks for multiple classes
Found you can just macro a more general class ViewComponent that's inherited by Field, Column, Entry etc. Not perfect but it'll work.
4 replies
FFilament
Created by Harvey on 4/19/2024 in #❓┊help
Custom table columns per table tab
Awesome, thanks guys for the answers. I'll go with the custom code one for now, but that plugin definitely looks functionality packed.😄
6 replies
FFilament
Created by Harvey on 1/31/2024 in #❓┊help
TextEntry placeholder not working for related models
$table->text('description')->nullable();
$table->text('description')->nullable();
6 replies
FFilament
Created by Harvey on 1/31/2024 in #❓┊help
TextEntry placeholder not working for related models
public function book(): BelongsTo
{
return $this->belongsTo(Book::class);
}
public function book(): BelongsTo
{
return $this->belongsTo(Book::class);
}
6 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
Telescope was the main cause. Have it enabled on dev, and disabling it halved the response times. Likely because telescope also watched blade views. Just like debugbar...
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
Alrighty, thanks for your help😄 . Think I'm just going to have to strip things back to try figure out what's causing this for my specific case.
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
I still have Nova installed in the same project, could that be causing a slow down?
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
Yeah I think my project is just slow overall. Setup a new laravel project and it's way faster.
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
like an extra 200-400ms just by adding the DeleteAction (with icons cached)
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
What's strange is when I add actions in 1 by 1, the ms increase is quite large
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
Yeah not much changed
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
TextInput::make('external_reference')
->label('Your reference')
->required(),
Select::make('handler_id')
->label('Handler')
->options(fn () => User::all()->pluck('name', 'id'))
->columnSpanFull()
->searchable()
->required(),
Textarea::make('notes'),
TextInput::make('external_reference')
->label('Your reference')
->required(),
Select::make('handler_id')
->label('Handler')
->options(fn () => User::all()->pluck('name', 'id'))
->columnSpanFull()
->searchable()
->required(),
Textarea::make('notes'),
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
The eloquent query takes ~1ms to run
17 replies
FFilament
Created by Harvey on 1/26/2024 in #❓┊help
Are table actions slow?
return $table
->query(Job::query())
->defaultSort('created_at', 'desc')
->columns([
TextColumn::make('external_reference')
->searchable()
->label('Your reference'),
->actions([
ViewAction::make('View')
->iconButton(),
EditAction::make('Edit')
->form(JobResource::getEditFormFields())
->iconButton(),
DeleteAction::make()
->iconButton(),
])
->bulkActions([
// ...
])
->defaultPaginationPageOption(25);
return $table
->query(Job::query())
->defaultSort('created_at', 'desc')
->columns([
TextColumn::make('external_reference')
->searchable()
->label('Your reference'),
->actions([
ViewAction::make('View')
->iconButton(),
EditAction::make('Edit')
->form(JobResource::getEditFormFields())
->iconButton(),
DeleteAction::make()
->iconButton(),
])
->bulkActions([
// ...
])
->defaultPaginationPageOption(25);
17 replies