/** * Display a listing of the resource. * * @param PortForward $forward * * @return Response */ public function index(PortForward $forward, Clones $clone) { $settings = $this->setting->all(); $forwards = $forward->orderBy('starting_port', 'asc')->get(); $clones = $clone->all(); $this->setViewData(compact('settings', 'forwards', 'clones')); }
/** * @param Event $event */ public function handle(Event $event) { $cloneModel = $this->clone->find($event->request['clone_id']); $group = $this->group->find($event->request['group_id']); $sitePath = Str::camel($event->request['name']); $event->site->updateStatus('Cloning the repo'); $this->envoy->run('clone --path="' . $group->starting_path . '" --name="' . $sitePath . '" --url=' . $cloneModel->url, true); }
/** * Show the form to generate a new Laravel site. * * @param Group $group * * @return Response */ public function clones(Group $group, Clones $clone) { $groups = $group->orderByNameAsc()->lists('name', 'id'); $clones = $clone->orderByNameAsc()->lists('name', 'id'); $this->setViewData(compact('groups', 'clones')); }