/** * Bootstrap the application services. * * @return void */ public function boot() { $connection = $this->app['konga-connection']; Model::setConnection($connection); }
public function __construct() { \Konga\Data\Model::setConnection(new \Mocks\Connection()); }