Exemplo n.º 1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create(Request $request)
 {
     $project = Project::find($request->get('project_id'));
     if ($request->get('type') == 'create') {
         return view('respondents.create', compact('project'));
     } elseif ($request->get('type') == 'upload') {
         return view('respondents.upload', compact('project'));
     }
 }
Exemplo n.º 2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $project = Project::find($id);
     return view('projects.show', compact('project'));
 }