/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($zip, $street) { $region = Region::locatedAt($zip, $street); return view('regions.show', compact('region')); }
/** * Add a photo to the referenced region. * * @param string $zip * @param string $street * @param Request $request */ public function store($zip, $street, RegionPhotoRequest $request) { $region = Region::locatedAt($zip, $street); $photo = $request->file('photo'); (new AddPhotoToRegion($region, $photo))->save(); }