2017 © Pedro Peláez
 

library apidriver

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

image

hungnguyenba/apidriver

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  • Thursday, February 8, 2018
  • by bahung1221
  • Repository
  • 0 Watchers
  • 3 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 9 % Grown

The README.md

NOTE:

This package was only used in my personal projects with special use cases, so you shouldn't use it. I will rewrite it for common use cases when i have rest time. Thank you!, (*1)


API Driver For Laravel 5.2

An Eloquent model and Query builder with support for Restful Api Server, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods., (*2)

### Installation

Installation using composer:, (*3)

composer require hungnguyenba/apidriver

And add the service provider in config/app.php:, (*4)

Hungnguyenba\Apidriver\DatabaseServiceProvider::class

### Configuration

Change your default database connection name in config/database.php:, (*5)

'default' => 'api'

And add a new api server connection:, (*6)

'api' => [
        'driver' => 'api',
        'host' => 'localhost/v1/',
        'database' => '',
        'prefix' => '',
]

### Usage

Create new Model extend Api Eloquent Model:, (*7)

use Hungnguyenba\Apidriver\Model\Model;

class User extends Model
{

}

Using the original Eloquent API:, (*8)

$users = User::where('id', '<', 100)->take(3)->get();
$user = User::find(3);
$user->delete();

The Versions

08/02 2018

dev-master

9999999-dev

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

08/02 2018

v0.0.13

0.0.13.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

08/02 2018

v0.0.12

0.0.12.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

08/02 2018

v0.0.11

0.0.11.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

08/02 2018

v0.0.10

0.0.10.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

07/02 2018

v0.0.9

0.0.9.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

06/02 2018

v0.0.8

0.0.8.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

05/02 2018

v0.0.7

0.0.7.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

01/02 2018

v0.0.6

0.0.6.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

26/01 2018

v0.0.5

0.0.5.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

25/01 2018

v0.0.4

0.0.4.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

25/01 2018

v0.0.2

0.0.2.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221

25/01 2018

v0.0.1

0.0.1.0

A Api based Eloquent model and Query builder for laravel (Api Eloquent)

  Sources   Download

The Requires

 

by Avatar bahung1221