Ejemplo n.º 1
0
 public function guest(Request $request)
 {
     $fn = $request->get('firstname');
     $ln = $request->get('lastname');
     $guest = Guest::firstOrCreate(['firstname' => $fn, 'lastname' => $ln]);
     return response()->json($guest);
 }