/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $crud = Crud::all(); return View('crud.index', compact('crud')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $crud = Crud::all(); return View::make('crud.index')->with('crud', $crud); }
public function index() { return Crud::all(); }
public function index() { $anggota = Crud::all(); return view('tampil')->with('anggota', $anggota); }