Download the PHP package dive-be/eloquent-utils without Composer
On this page you can find all versions of the php package dive-be/eloquent-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dive-be/eloquent-utils
More information about dive-be/eloquent-utils
Files in dive-be/eloquent-utils
Package eloquent-utils
Short Description Declarative Eloquent utilities for an improved DX
License MIT
Homepage https://github.com/dive-be/eloquent-utils
Informations about the package eloquent-utils
🛠 Eloquent utilities for improved DX
This package is a collection of declarative tools for common Eloquent
tasks.
- DisablesTimestamps
- InteractsWithStaticData
- Unguarded
- Unwritable
Installation
You can install the package via composer:
Usage
Again, the primary purpose is to provide a declarative interface for frequent imperative tasks. The added benefit is that a person skimming through the model can immediately see what's going on due to the declarative nature.
DisablesTimestamps
Disables the created_at
and updated_at
auto-updates.
InteractsWithStaticData
Depends on: DisablesTimestamps, Unwritable
Prevent unnecessary database round-trips by caching each and every record next to your static model.
Migration
Define a unique column.
Model
The source data is defined in the same file.
(Database)Seeder
Use
No database queries will be performed...
Unguarded
Disables mass assignment protection on a per model basis.
Unwritable
Makes your Eloquent model read-only.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Muhammed Sari
- All Contributors
License
The MIT License (MIT). Please see License File for more information.