mapyo / eloquent-only
This package is abandoned and no longer maintained.
No replacement package was suggested.
Use only eloquent in laravel
1.0.0
2015-06-21 23:43 UTC
Requires
- php: >=5.3.3
- illuminate/database: ~4.1
Requires (Dev)
- phpunit/dbunit: ~1.4
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2022-12-24 08:15:23 UTC
README
Installation
composer require mapyo/eloquent-only
Usage
<?php use Mapyo\EloquentOnly\Eloquent; $loader = require('./vendor/autoload.php'); Eloquent::init( array( 'driver' => 'mysql', 'host' => '127.0.0.1', 'database' => 'database', 'username' => 'user', 'password' => 'password', 'port' => 3306, 'collation' => 'utf8_unicode_ci', 'charset' => 'utf8', ) ); class User extends Illuminate\Database\Eloquent\Model { protected $table = 'users'; } $user = User::find(1); var_dump($user->name); $log = Eloquent::getConnection()->getQueryLog(); var_dump($log);