How to resolve MassAssignment Exception _token error in Laravel 5?

2019-11-18 08:23:54 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.

Example:-

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