Support the ongoing development of Laravel.io →
posted 9 years ago
Database
Last updated 2 years ago.
0

Hi Friend,

According to me, please check your model Post.php. have you set "title" and "content" in fillable array??

eg.:-

protected $table = 'your_db_post_table';
protected $fillable = array('title','content');
Last updated 9 years ago.
0

I'm really ashamed!

I tried tracking the code and seeing if the values are actually received from the form, it appeared that the title's name is text by mistake, so that was the revolutionary mistake.

Could you please tell me what's the use of the code you mentioned, and is it necessary? Because it's still work even without it.

Really sorry for bothering you, thanks for the help.

0

Hey,

the most simple is u follow this link Laravel docs

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

abahhar abahhar Joined 21 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.