diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-26 13:04:49 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-26 13:04:49 -0500 |
| commit | 0790c781f8a1ae297c800f86bc8da2c5c2818670 (patch) | |
| tree | b9cb90e99a3f3fdc415e4a1c41393daaf9e889d5 /laravel/app/Http/Controllers | |
| parent | e51142fbb8ba83c3938915e213fc3037f7fb06f9 (diff) | |
| download | prosongsa-0790c781f8a1ae297c800f86bc8da2c5c2818670.tar.gz | |
* Songs: Add links to the songs
Diffstat (limited to 'laravel/app/Http/Controllers')
| -rw-r--r-- | laravel/app/Http/Controllers/SongController.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/laravel/app/Http/Controllers/SongController.php b/laravel/app/Http/Controllers/SongController.php new file mode 100644 index 0000000..fb471af --- /dev/null +++ b/laravel/app/Http/Controllers/SongController.php @@ -0,0 +1,16 @@ +<?php + +namespace App\Http\Controllers; + +use App\Song; +use Illuminate\Http\Request; + +class SongController extends Controller +{ + + public function show( $songNumber ) + { + $song = Song::where('number', $songNumber )->get(); + return $song; + } +} |
