Remove Mass Assignment Protection on your models.
You can install the package via composer:
composer require rayblair/removemassassignment
Simply inherit the RemoveMassAssignmentModel
instead of Illuminate\Database\Eloquent\Model
on models you which to remove mass assignment for.
Alternative I would create a new EloquentModel
class that inherits the RemoveMassAssignmentModel
class and then replace all Illuminate\Database\Eloquent\Model
classes with your new base EloquentModel
class . This may if you want to remove the RemoveMassAssignmentModel
class or add additional functionality you only have to modify the EloquentModel
class.
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email rayblair06@hotmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.