If you liked of this library, give me a star =).
composer require cekurte/eloquentbundle
After, register the bundle in your AppKernel like this:
// app/AppKernel.php
// ...
public function registerBundles()
{
$bundles = array(
// ...
new Cekurte\EloquentBundle\CekurteEloquentBundle(),
// ...
);
// ...
return $bundles;
}
All reference to configure this bundle is bellow, add this in your config file.
# app/config/config.yml
# ...
cekurte_eloquent:
connection:
driver: "mysql" # Default is mysql. Available too: postgres, sqlserver and sqlite.
host: "127.0.0.1" # Required
database: "dbname" # Required
username: "user" # Required
password: "pass" # Optional, default is ""
charset: "utf8" # Optional, default is "utf8"
collation: "utf8_unicode_ci" # Optional, default is "utf8_unicode_ci"
prefix: "" # Optional, default is ""
See the documentation of the Eloquent ORM.
git checkout -b my-new-feature)vendor/bin/phpunit)git commit -am 'Added some feature')git push origin my-new-feature)How can I help you explore Laravel packages today?