Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ErrorException in dbda158712a631f22ffd888cd244c74e60f3a433.php line 51:
- Undefined variable: albums (View: /var/www/clients/client2/web2/web/resources/views/album.blade.php)
- @foreach($albums as $others)
- <option value="{{$others->id}}">{{$others->name}}</option>
- @endforeach
- public function getAlbum($id)
- {
- $album = Album::with('Photos')->find($id);
- return View::make('album')
- ->with('album',$album);
- }
- public function getList()
- {
- $albums = Album::with('Photos')->get();
- return View::make('index')
- ->with('albums',$albums);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement