Algorithm
Algorithm
FFilament
Created by Algorithm on 1/22/2024 in #❓┊help
FileUpload doesn't accept MorphTo.
The photo model has the required fileds: class Photo extends Model { protected $fillable = ['photoable_id', 'photoable_type', 'filename']; public function photoable(): MorphTo { return $this->morphTo(); } }
5 replies
FFilament
Created by Algorithm on 7/20/2023 in #❓┊help
Change the language of Select Component
This is the whole function for the form:
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Card::make()
->schema([
Forms\Components\TextInput::make('name'),
Forms\Components\RichEditor::make('description'),
])
->columnSpan(2),
Forms\Components\Card::make()
->schema([
Forms\Components\DatePicker::make('schedule'),
Forms\Components\TextInput::make('Location'),
Forms\Components\TextInput::make('salary'),
Forms\Components\Select::make('department')
->relationship('department', 'name')
->reactive(),
])
->columnSpan(1),
])
->columns(3);;
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Card::make()
->schema([
Forms\Components\TextInput::make('name'),
Forms\Components\RichEditor::make('description'),
])
->columnSpan(2),
Forms\Components\Card::make()
->schema([
Forms\Components\DatePicker::make('schedule'),
Forms\Components\TextInput::make('Location'),
Forms\Components\TextInput::make('salary'),
Forms\Components\Select::make('department')
->relationship('department', 'name')
->reactive(),
])
->columnSpan(1),
])
->columns(3);;
}
11 replies
FFilament
Created by Algorithm on 7/20/2023 in #❓┊help
Change the language of Select Component
Ok I will wait.
11 replies
FFilament
Created by Algorithm on 7/20/2023 in #❓┊help
Change the language of Select Component
11 replies
FFilament
Created by Algorithm on 7/20/2023 in #❓┊help
Change the language of Select Component
Forms\Components\Select::make('department')
->relationship('department', 'name')
->reactive(),
Forms\Components\Select::make('department')
->relationship('department', 'name')
->reactive(),
Still doesn't work
11 replies