How to resolve MassAssignment Exception _token error in Laravel 5?

2024-04-20 14:10:23 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