How are you creating the resources in your controller?
Have you set the $fillable property on your model, if you're trying for mass assignment?
http://laravel.com/docs/5.1/eloquent#mass-assignment
Otherwise, can you show the html for your form?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
For a couple hours I am trying to resolve a very big and strange problem.
I have a form for Projects resource. Create and Edit views include _form.blade.php view which contains every fields. Normally, no problem here.
I have several fields in my form: client_id, type_id, title, slug, description, etc. The error is that the fields description, meta_description and the new ones that I add just to test are completely ignored. There fields are not even included in the $request->all() array, except for the description, which is present but always empty.
I really have no idea what I did to have such a problem. I have two other resources where I use same technique, and there is absolutely no problem!
Has someone already encountered this kind of issue? I am really lost in this.
Thanks in advance.
Resolved! I can believe how stupid this was. It's just my helper function for forms textarea() returned always <textarea name="description" no mather the name.
Thanks anyway for trying to help me!
Please or to participate in this conversation.