⚠️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
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.
To install this package you will need:
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
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.
function render_sql(\Illuminate\Database\Query\Builder $query)
This package is developed and maintained by the PHP team at Nodes
This package is open-sourced software licensed under the MIT license