Example #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($asName)
 {
     $category = Category::getCatInfoModelByAsName($asName);
     $this->setCommonData();
     if (empty($category)) {
         return redirect(url(route('website.index')));
     }
     $data['articleList'] = Article::getArticleListByCatId($category->id);
     return view('website.article_list', $data);
 }