Пример #1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $skills = $this->skillRepository->lists('name', 'id');
     return view('admin.certificate.create', compact('skills'));
 }
Пример #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  string $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $obj = $this->repository->find($id);
     $this->repository->delete($obj->id);
     return redirect()->route('admin.skill.index');
 }