public function index()
    {
        $articles = $this->repository->allOrSearch(Input::get('q'));

        $no = $articles->firstItem();

        return $this->view('articles.index', compact('articles', 'no'));
    }
public function index()
    {
        $articles = $this->repository->allOrSearch(Input::get('q'));

        $no = $articles->firstItem();

        return $this->view('articles.index', compact('articles', 'no'));
    }
public function index ( ) { $ articles = $ this -> repository -> allOrSearch ( Input :: get ( 'q' ) ) ; $ no = $ articles -> firstItem ( ) ; return $ this -> view ( 'articles.index' , compact ( 'articles' , 'no' ) ) ; }
Display a listing of articles.

@return Response
Display a listing of articles .