app/Http/Controllers/Admin/BeritaController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $pagename = 'Tambah Berita';
        $data_kategori = kategoriBerita::all();
        return view('admin.berita.create', compact('pagename', 'data_kategori'));
    }
public function create ( ) { $ pagename = 'Tambah Berita' ; $ data_kategori = kategoriBerita :: all ( ) ; return view ( 'admin.berita.create' , compact ( 'pagename' , 'data_kategori' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .