예제 #1
0
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  \Closure  $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     $album = Album::SelectAllAlbums()->with('photos', 'comments')->get();
     $request->session()->flash('album', $album);
     return $next($request);
 }