Exemple #1
0
 /**
  * Show the form for editing the specified News.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id, NewsRepo $news_repo)
 {
     $news = $news_repo->getById($id);
     return view('admin.news.edit', compact('news'));
 }
Exemple #2
0
 /**
  * Display the specified News.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id, NewsRepo $news_repo)
 {
     $single_news = $news_repo->getById($id);
     $news = $news_repo->getAllFront();
     return view('archivio_news.show', compact('news', 'single_news'));
 }