DevMike
DevMike
FFilament
Created by DevMike on 10/25/2023 in #❓┊help
checkbox list: Allow exactly one selection (like Radiobutton)
Thank you for your input . I have to check that in manual first, for I don't know 'repeater', yet.
3 replies
FFilament
Created by shad on 10/31/2023 in #❓┊help
NumberFormtter not found after V3 upgrade
See this Blog for your answere. Maybe helpful. https://github.com/filamentphp/filament/discussions/7331
4 replies
FFilament
Created by DevMike on 10/11/2023 in #❓┊help
Form field in relationship to pivot table
Got my solution adding this to the model "user":
public function user_detail_company()
{
return $this->hasOne('App\Models\UserDetails', 'user_id', 'id')->where('field', 'company');
}
public function user_detail_company()
{
return $this->hasOne('App\Models\UserDetails', 'user_id', 'id')->where('field', 'company');
}
and setting relationship of the form element to this new relation:
Fieldset::make()
->schema([
TextInput::make('value')
])
->relationship('user_detail_company'),
Fieldset::make()
->schema([
TextInput::make('value')
])
->relationship('user_detail_company'),
Maybe not the optimal way to make this - but working and so fine for now. 😉
9 replies
FFilament
Created by DevMike on 10/11/2023 in #❓┊help
Form field in relationship to pivot table
public function user_details()
{
return $this->hasMany('App\Models\UserDetails', 'user_id', 'id');
}
public function user_details()
{
return $this->hasMany('App\Models\UserDetails', 'user_id', 'id');
}
9 replies
FFilament
Created by DevMike on 10/11/2023 in #❓┊help
Form field in relationship to pivot table
Thank you for your answere! I know, that I can't pass an array to relationship. Just wanted to demonstrate what I trying to do there... Do you have an example for me for this pivot model, please? Meanwhile I am searching online... Thought "hasMany" is a pivot model relationship.
9 replies
FFilament
Created by DevMike on 10/11/2023 in #❓┊help
Form field in relationship to pivot table
Sorry for this dump question: Where is the exception page to click on "share" for error codes? Never heard of...
9 replies