rayblair / removemassassignment
Installs: 8 952
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-10-17 05:01:02 UTC
README
Remove Mass Assignment Protection on your models.
Installation
You can install the package via composer:
composer require rayblair/removemassassignment
Usage
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.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email rayblair06@hotmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.