/**
  * Show the result for finding articles.
  *
  * @return \Illuminate\Http\Response
  */
 public function searchArticle()
 {
     $article = new Article();
     $articles = $article->search(Input::get('query'), 12);
     return response()->json(['request_id' => uniqid(), 'status' => 'success', 'timestamp' => Carbon::now(), 'articles' => $articles]);
 }
 /**
  * Show the result for finding articles.
  *
  * @return \Illuminate\Http\Response
  */
 public function searchArticle()
 {
     $article = new Article();
     $article_result = $article->search(Input::get('query'));
     $total_result = $article_result->total();
     return view('pages.search', compact('article_result', 'total_result'));
 }