Saving TextInputColumn in a different table
I need a way to save value in a different table rather than the static model. IT makes the update in the default model.
Solution:Jump to solution
then use something like
TextInputColumn::make('applications.screening_mark')
...13 Replies
Anyone?
use laravel observer
inside the
EditResource
class
i do no understand. the code is:
TextInputColumn::make('screening_mark')
i wish to save in applications table not user (default model)the error its giving is
in which table
screening_mark
column exists?applications table
is there a relation with the
users
table?Just set the field is a relationship if it's a select field with a morph
yes
Solution
then use something like
TextInputColumn::make('applications.screening_mark')
filament automatically handle
where
applications
is the relation define in the user modelindeed this solution worked π
. thanks a bunch. leveraging on the existing relationship worked. I'm grateful for your insights