public function __construct(Application $app) { $this->app = $app; $this->connection = $app['db']; $this->config = $app['config']; }