nodes / database
Makes it easier to work with models and repositories in Laravel
Requires
- php: >=5.6
- illuminate/database: >=5.2.0 <6.15.0
- illuminate/support: >=5.2.0 <6.15.0
- nodes/core: 1.1.*
Requires (Dev)
- mockery/mockery: ~0.9
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^5.0
Suggests
- nodes/counter-cache: Adds the concept of counter caching to your project
This package is auto-updated.
Last update: 2024-04-17 19:23:36 UTC
README
⚠️This package is deprecated⚠️
Most of this is build in Laravel now. No reason to use this anymore
A collection of our most used methods in pretty much every project we create at Nodes
📝 Introduction
There is a saying;
Do not re-invent the wheel.
Therefore we've created a collection of all the methods we use in almost every project. We've also added some very cool ones which automatically throws an exception if a record could not be found and some other quite neat things.
📦 Installation
To install this package you will need:
- Laravel 5.1+
- PHP 5.5.9+
You must then modify your composer.json
file and run composer update
to include the latest version of the package in your project.
"require": { "nodes/database": "^1.0" }
Or you can run the composer require command from your terminal.
composer require nodes/database:^1.0
⚙ Usage
Create a new class and make it extend Nodes\Database\Eloquent\Repository
.
At a later time, we'll create a more in-depth documentation of each method in the repository, but for now, we'll recommend you to look through the source and read the DocBlock for each method.
Check out all the available methods in the src/Eloquent/Repository.php file.
Global methods
function render_sql(\Illuminate\Database\Query\Builder $query)
🏆 Credits
This package is developed and maintained by the PHP team at Nodes
📄 License
This package is open-sourced software licensed under the MIT license