Exemplo n.º 1
0
 public function __construct($app)
 {
     $config = $app['config'];
     // make the app available to models
     Model::inject($app);
     // set up the model driver
     $class = $config->get('models.driver');
     $this->driver = new $class($app);
     Model::setDriver($this->driver);
     // used for password hasing
     Validate::configure(['salt' => $config->get('app.salt')]);
 }