예제 #1
0
 public function show($id)
 {
     try {
         $prospect = Prospect::findOrFail($id);
         $prospect->load('agent');
         return View::make('thank_you')->with(['prospect' => $prospect]);
     } catch (Exception $e) {
         Log::error('Failed to find a specific record', array(404, "prospect: " . $prospect->id));
         App::abort(404);
         //this goes directly to the missing method in global.php
     }
 }