* @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed * @throws \Exception */ public function handle(Request $request, Closure $next) { $shop = Shop::byUser(Api::user())->first(); if ($shop) { $request->merge(['shop' => $shop]); } else { throw new \Exception('Do not have a shop'); } return $next($request); } }