app/Http/Controllers/NewsController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Http\Response
     */
Display a listing of the resource.
Display a listing of the resource .
public function index()
    {
        $news = News::paginate();
        return view('index', compact('news'));
    }
public function index ( ) { $ news = News :: paginate ( ) ; return view ( 'index' , compact ( 'news' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .