nodes/database

This package is abandoned and no longer maintained. No replacement package was suggested.

Makes it easier to work with models and repositories in Laravel

1.0.8 2020-02-13 21:41 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

Total downloads Monthly downloads Latest release Open issues License Star repository on GitHub Watch repository on GitHub Fork repository on GitHub StyleCI

📝 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

Follow Nodes PHP on Twitter Tweet Nodes PHP

📄 License

This package is open-sourced software licensed under the MIT license