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