app/Http/Controllers/Admin/BeritaController.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()
    {
        $pagename = 'Berita';
        $data = berita::all();
        return view('admin.berita.index', compact('pagename', 'data'));
    }
public function index ( ) { $ pagename = 'Berita' ; $ data = berita :: all ( ) ; return view ( 'admin.berita.index' , compact ( 'pagename' , 'data' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .