Download the PHP package gertjanroke/laravel-db-model without Composer
On this page you can find all versions of the php package gertjanroke/laravel-db-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gertjanroke/laravel-db-model
More information about gertjanroke/laravel-db-model
Files in gertjanroke/laravel-db-model
Package laravel-db-model
Short Description A model wrapper around the DB class to keep your code clean
License MIT
Homepage https://github.com/GertjanRoke/laravel-db-model
Informations about the package laravel-db-model
Laravel DB Model
A model wrapper around the DB class to keep your code clean.
Installation
You can install the package via composer:
Usage
If no table name was given it will guess it based on the class name just like the Eloquent model those.
Same for the connection, if none is set it will use the default connection.
How to extend custom scopes
It's basically the same as for Eloquent models, you would need to prefix the methods with scope
Some examples
You can easly create short functions for basic where's or even more complex queries so you have it always in one location instead of everywhere in your code base.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Gertjan Roke
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-db-model with dependencies
spatie/laravel-package-tools Version ^1.4.3
illuminate/collections Version ^8.37
illuminate/support Version ^8.37
illuminate/database Version ^8.37