Exemplo n.º 1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     if ($curso = \App\Curso::find($id)) {
         return $curso;
     } else {
         return response(\App\Curso::notFound(), 404)->header('Content-Type', 'application/vnd.api+json');
     }
 }