var_dump($result)
array(10) { ["userid"]=> int(1) ["login"]=> string(5) "raven" ["password"]=> string(32) "827ccb0eea8a706c4c34a16891f84e7b" ["phone"]=> string(12) "+70000000000" ["email"]=> string(12) "amil@mail.ru" ["firstname"]=> string(6) "Ivanov" ["lastname"]=> string(4) "Ivan" ["patronymic"]=> string(9) "Ivanovich" ["role"]=> string(5) "admin" ["sessionid"]=> int(0) }
composer require illuminate/database
<?php
require('vendor/autoload.php');
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
$capsule->addConnection([
'driver' => 'mysql',
'host' =>'127.0.0.1',
'database' =>'dbname' ,
'username' =>''dbuser,
'password' =>'dbpass',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => ''
]);
$capsule->setAsGlobal();
$capsule->bootEloquent();
<?php
require_once('database.php');
use Illuminate\Database\Capsule\Manager as Capsule;
$users = Capsule::table('user')->where('userid', 2)->get();
Если вы используете Фреймворк только из-за ORM, и к тому же, называете ее ОЧЕНЬ УДОБНОЙ, то (не в обиду) мне вас жалко.