/** * Register the service provider. * * @return void */ public function register() { $this->app->bind('montage', function () { $montage = new Montage($this->app->config->get('montage.subdomain')); $montage->auth($this->app->config->get('montage.username'), $this->app->config->get('montage.password')); return $montage; }); }
/** * Returns the details of a specific Montage schema. * * @return mixed */ public function detail() { $url = $this->montage->url('schema-detail', $this->name); return $this->montage->request('get', $url); }