Example #1
0
 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'));
 }
Example #2
0
 public function index(Song $song)
 {
     $songs = $song->get();
     //dd($songs);
     return view('songs.index', compact('songs'));
 }
Example #3
0
 /**
  * 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'));
 }
Example #5
0
 /**
  * Show list of songs
  * @return \Illuminate\View\View
  */
 public function index()
 {
     $songs = $this->song->get();
     return view('songs.index', compact('songs'));
 }