public function edit($id) { $data = $this->repository->find($id); return view('backend.event.edit', ['event' => $data]); }