limewater23
limewater23
Explore posts from servers
TLCTuto's Laravel Corner
Created by limewater23 on 10/27/2024 in #🚀laravel
FilePond
Which library can help to show pdf preview in form edit page, I mean save files from form page, Filepond doesn't support that
2 replies
FFilament
Created by limewater23 on 8/1/2024 in #❓┊help
Customized action button "Apply"
I want to create a customized action button "Apply" in job listing table, and when I click it will direct to Filament applicaiton form to create a new application, same time pass the job listing id to the applicaiton form, how to do that without creating new route and Laravel view, thanks!
5 replies
FFilament
Created by limewater23 on 6/28/2024 in #❓┊help
SQLSTATE[HY000]: General error: 1364 Field 'slug' doesn't have a default value
I tried to create a new tag in Filament, this is my Filament tag form:
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state)))
->unique(ignoreRecord: true)
->required()
->maxLength(100),
Forms\Components\TextInput::make('slug')->hidden(),
]);

}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state)))
->unique(ignoreRecord: true)
->required()
->maxLength(100),
Forms\Components\TextInput::make('slug')->hidden(),
]);

}
I got the error: SQLSTATE[HY000]: General error: 1364 Field 'slug' doesn't have a default value anyone knows why the callback isn't being triggered or the generated slug is not being saved?
3 replies
FFilament
Created by limewater23 on 3/29/2024 in #❓┊help
Call to a member function associate() on null
I got the error like this when tried to create new item or edit seeded data local.ERROR: Call to a member function associate() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function associate() on null at /var/www/html/vendor/filament/forms/src/Components/Select.php:971) [stacktrace]
2 replies
FFilament
Created by limewater23 on 3/10/2024 in #❓┊help
Filament Can't Login, Shows 419 Page Expired but Shows login page CSRF token mismatch
I updated my laravel from V9 to V10, and Filament from V2 to V3, I created a user, and when I tried to login, the website doesnt go to dashbaord but shows 419 Page Expired, the Laravel debugging shows mismatched csfr
11 replies