Created
July 28, 2013 23:37
-
-
Save mandado/6100732 to your computer and use it in GitHub Desktop.
Codigo illuminate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'database-master/Capsule/Manager.php'; | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
$capsule = new Capsule; | |
$capsule->addConnection([ | |
'driver' => 'mysql', | |
'host' => 'localhost', | |
'database' => 'camilaferreira', | |
'username' => 'root', | |
'password' => '', | |
'charset' => 'utf8', | |
'collation' => 'utf8_unicode_ci', | |
'prefix' => '', | |
]); | |
// Set the event dispatcher used by Eloquent models... (optional) | |
$capsule->setAsGlobal(); | |
$capsule->bootEloquent(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment