2017 © Pedro Peláez
 

library laraquent

An out of Laravel Eloquent 5.1 extended use, and as a provider to different microframeworks.

image

offworks/laraquent

An out of Laravel Eloquent 5.1 extended use, and as a provider to different microframeworks.

  • Tuesday, September 6, 2016
  • by eimihar
  • Repository
  • 1 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

laraquent

A quick out of Laravel Eloquent 5.5 setup., (*1)

I am just too lazy to figure out everything again everything I need to use eloquent. :p, (*2)

More documentation can be found here : - https://github.com/illuminate/database - https://laravel.com/docs/master/eloquent, (*3)

Usage

Install through composer, (*4)

composer require offworks/laraquent

Boot, (*5)

$capsule = \Laraquent\Factory::boot([
    'host' => 'localhost',
    'name' => 'mydb',
    'user' => 'root',
    'pass' => ''
    ]);

Active schema migration

table() method may now be used to listen to existing database, to perform either create or alter table, it will make changes to database accordingly. - create table if the table does not exist. - add column for existing table and skip exception if table doesn't exist - does not drop table - does not drop column, (*6)

$schema = new \Laraquent\Schema($capsule->getConnection());

$schema->table('Book', function($table) {
    $table->increments('id');
    $table->string('title');
    $table->string('isbn');
    $table->timestamps();
});

Prefixed relation method

Relation method now is to be prefixed with 'relate', if you use the extended base model. Example :, (*7)

class Article extends \Laraquent\Entity
{
    public function relateAuthor()
    {
        return $this->hasOne('\App\Entity\Author', 'author_id');
    }
}

Special thanks

Special thanks to Taylor Otwell, and Laravel communities for making an awesome framework, and for making it possible to use eloquent outside of larevel., (*8)

The Versions

06/09 2016

dev-master

9999999-dev

An out of Laravel Eloquent 5.1 extended use, and as a provider to different microframeworks.

  Sources   Download

MIT

The Requires

 

by Ahmad Rahimie Ahmad Zailani

orm laravel eloquent mysql php-mysql exedra

06/09 2016

v1.0.1

1.0.1.0

An out of Laravel Eloquent 5.1 extended use, and as a provider to different microframeworks.

  Sources   Download

MIT

The Requires

 

by Ahmad Rahimie Ahmad Zailani

orm laravel eloquent mysql php-mysql exedra

11/06 2016

v1.0.0

1.0.0.0

An out of Laravel Eloquent 5.1 extended use, and as a provider to different microframeworks.

  Sources   Download

MIT

The Requires

 

by Ahmad Rahimie Ahmad Zailani

orm laravel eloquent mysql php-mysql exedra