app/Http/Controllers/ArticlesController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request)
    {
        $articles=Article::search($request->title)->orderBy('id','ASC')->paginate(5);
        return view('admin.articles.index')->with('articles',$articles);
    }
public function index ( Request $ request ) { $ articles = Article :: search ( $ request -> title ) -> orderBy ( 'id' , 'ASC' ) -> paginate ( 5 ) ; return view ( 'admin.articles.index' ) -> with ( 'articles' , $ articles ) ; }
Display a listing of the resource.
Display a listing of the resource .