Пример #1
0
 /**
  * Remove the specified News from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id, TdvRepo $tdv_repo)
 {
     $delete = $tdv_repo->remove($id);
     return 'true';
 }
Пример #2
0
 /**
  * Show the form for editing the specified News.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show(TdvRepo $tdv_repo)
 {
     $tdv = $tdv_repo->getAllFront();
     // return $tdv;
     return view('tdv.show', compact('tdv'));
 }