hidden fields #496
-
I'm using in two different controller a code like this: My problem is in one controller works and in the other no |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
hi, my friend @blondie63 , |
Beta Was this translation helpful? Give feedback.
-
@christmex Regarding the use of Session I read how it works but the thing that is not clear to me is why in the controller CompanyServiceCategoryCrudController Session::get('company') always has a value while Session::get('businessType') is always null However, the previous problem remains, that is the fact that the value is not saved if I use CRUD::field('company_id') |
Beta Was this translation helpful? Give feedback.
-
Hi @blondie63 , in my opinion nothing is wrong with
i think? as long as the field exist in migration and already defined in $fillable on your model
sorry, but sometimes i need to debug everything to understand where is the problem, if the problem is in your session, you should find it out where is the session setup the value, maybe when you login or something else? Thx |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm closing this issue due to inactivity. If you need further assistance or have additional questions, feel free to reopen this issue or create a new one. We're here to help! |
Beta Was this translation helpful? Give feedback.
The problem is not on Session but on validation rules
If i use CRUD::field('company_id').... in request file i've to use rules() -> with company_id
If i use CRUD::field('company').... in request file i've to use rules() -> with company
Finally i understood well the flow ! :)
Thanks for your help