addConnection([ "driver" => "mysql", "host" => "127.0.0.1", "database" => "itskp", "username" => "root", "password" => "" ]); //Make this Capsule instance available globally. $capsule->setAsGlobal(); // Setup the Eloquent ORM. $capsule->bootEloquent(); $capsule->bootEloquent();