/** * Show the form for creating a new Instrument. * * */ public function create() { $instruments = Instrument::all(); return view('instrument.create', ['instruments' => $instruments]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $instruments = Instrument::all(); return view('instruments.index', compact('instruments')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $instruments = Instrument::all(); return view('instrument.index')->with('instruments', $instruments); }