Ejemplo n.º 1
0
 /**
  * Show the form responses for a given slug.
  *
  * @param  string  $slug
  * @return Response
  */
 public function responses($slug)
 {
     die('@TODO: Not working yet.');
     $form = \App\Form::where('slug', '=', $slug)->firstOrFail();
     $responses = \App\Response::where('form_id', '=', $form->id)->get();
     return view('forms.responses', array('fields' => $form->fields, 'responses' => $responses));
 }