Published 1 month ago by hamilton
I'm new to Laravel (5.7) and trying to save to DB using Post::create()
protected $fillable = ['title','content'];
in the Post model when I attempt to run:
Post::create([ 'title' => 'Post Title', 'content' => 'Post Content' ]);
"Add [title] to fillable property to allow mass assignment on [App\Post]."
I searched everywhere for solution but come up with nothing so for.
Any help appreciated. If more info required let me know.