예제 #1
0
 public function show($id)
 {
     $delight = Delight::with('customer')->find($id);
     if ($delight->account_id != Auth::user()->account_id) {
         return redirect('/dashboard/delights');
     }
     return view('user.delights.show', compact('delight'));
 }