/** * @return array */ public function toArray() { return parent::toArray() + ['inventories' => $this->inventories, 'users' => $this->users, 'hookUrl' => config('app.url') . action('HookController@pull', [$this->id], false)]; }
public function toArray() { return parent::toArray() + ["remote" => sprintf("%s/git/%s/%s", env('APP_URL'), $this->repo->id, $this->name)]; }