How to resolve MassAssignment Exception _token error in Laravel 5?

2024-03-04 04:29:27 Shristi Laravel

Mass assignment exception in model.php

It seems you have not defined the fillable attribute in your Model.

Please define it in your model class to allow table attributes as fillable or left it as a blank array if you want to columns as fillable.


protected $fillable = ['video_title', 'video_url', 'description'];

//To allow all use

protected $fillable = [];

This post is submitted by one of our members. You may submit a new post here.

Related Tricks