Answers for "Illuminate\Database\Eloquent\MassAssignmentException with message"

PHP
0

Illuminate\Database\Eloquent\MassAssignmentException with message

Example:
	If u are trying to use the method create in php artisan tinker :
    
    	\App\<class_name>:create
    
    You will notice the error :
    
    	Illuminate\Database\Eloquent\MassAssignmentException with message...
    
    The reason is going to your class and add: protected $fillable
    
    	class <class_name> extends Model
        {
            protected $fillable = ['<column_name>' , '<column_name>', '<column_name'];
        }
Posted by: Guest on March-08-2022

Code answers related to "Illuminate\Database\Eloquent\MassAssignmentException with message"

Browse Popular Code Answers by Language