public function index() { // $songs = $this->getSongs(); // $songs = DB::table('songs')->get(); // $songs = Song::get(); //dd($songs); $songs = $this->song->get(); return view('songs.index', compact('songs')); }
public function index(Song $song) { $songs = $song->get(); //dd($songs); return view('songs.index', compact('songs')); }
/** * Get the song data, with notes. * * @param $id * @param $difficulty * @return \Illuminate\Http\JsonResponse */ public function getNotes($id, $difficulty) { return response()->json(Song::get($id, $difficulty)); }
public function index() { $songs = Song::get(); return view('songs.index', compact('songs')); }
/** * Show list of songs * @return \Illuminate\View\View */ public function index() { $songs = $this->song->get(); return view('songs.index', compact('songs')); }