Download the PHP package grizzlyware/model-swapper without Composer
On this page you can find all versions of the php package grizzlyware/model-swapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grizzlyware/model-swapper
More information about grizzlyware/model-swapper
Files in grizzlyware/model-swapper
Package model-swapper
Short Description Swap vendor models out for your own implementations, on the fly
License MIT
Homepage https://github.com/grizzlyware/model-swapper
Informations about the package model-swapper
Swap vendor models out for your own implementations, on the fly
This package can be used to use your own applications implementation of a model which has been provided by a vendor package. This can be useful to manipulate behaviour on a model, access protected properties or use classes in your own namespace.
Extending a vendor's class is already possible, but you cannot change vendors invocation of the class. All references will still point to the original class name and namespace.
This package will change the actual class that is returned from Eloquent query builders, including all()
, get()
, first()
, findOrFail()
etc.
For example:
Installation
You can install the package via composer:
Usage
Advanced usage
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please notify [email protected] about any security vulnerabilities, do not open an issue for them.
Credits
- Grizzlyware Ltd
- All Contributors
License
The MIT License (MIT). Please see License File for more information.