backtrackjack
backtrackjack
FFilament
Created by backtrackjack on 5/8/2024 in #❓┊help
2 of our Filament 3 sites are being flagged as dangerous by google
This only started yesterday, along with a rails app. None of them are public facing but says it has found phishing? wondering if this has happened to anyone else?
2 replies
FFilament
Created by backtrackjack on 10/4/2023 in #❓┊help
`->hidden()` method on TextInput field breaks app
I have this code on a filament resource:
public static function form(Form $form): Form
{
return $form
->schema([
TextInput::make('owner_type')->default('user')->hidden(),
TextInput::make('owner_id')
->default(auth()->user()->id)->hidden(),
TextInput::make('title')->required()->maxLength(255),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
TextInput::make('owner_type')->default('user')->hidden(),
TextInput::make('owner_id')
->default(auth()->user()->id)->hidden(),
TextInput::make('title')->required()->maxLength(255),
]);
}
This record has a polymorphic relation with it's "owner" which I would like to default to a user. I have created the morph map in a service provider. This code throws a SQL error "owner_type" / "owner_id" cannot have a default value, however when I remove the hidden method on both fields, the record is created fine. Not sure what else to try, cheers.
5 replies
FFilament
Created by backtrackjack on 9/8/2023 in #❓┊help
autofocus() not working
Hello, I have this on a resource class:
public static function form(Form $form): Form
{
return $form
->schema([
TextInput::make('title')->required()->maxLength(255)->autofocus(),
Hidden::make('owner_id')->default(auth()->id()),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
TextInput::make('title')->required()->maxLength(255)->autofocus(),
Hidden::make('owner_id')->default(auth()->id()),
]);
}
I have a page action on the list resource page for creating new resources that uses the pre-defined CreateAction class. could that be preventing it? let me know if you need more info, cheers.
6 replies
FFilament
Created by backtrackjack on 8/24/2023 in #❓┊help
Dynamic Form Field
6 replies
FFilament
Created by backtrackjack on 7/19/2023 in #❓┊help
Livewire + Alpine optimisation
3 replies
FFilament
Created by backtrackjack on 6/28/2023 in #❓┊help
How can I get this functionality on a TagsColumn
12 replies