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