Exemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     // $svc = new \Grovers\Blog\Services\Articles;
     $model = new \Grovers\Blog\Models\Article();
     $article = $model->find($id);
     return view('blog::articles.edit')->with('article', $article);
 }
Exemplo n.º 2
0
 public function findArticle($id)
 {
     $model = new \Grovers\Blog\Models\Article();
     return $model->find($id);
 }