Beispiel #1
0
 public function updateLogin(Request $request, $id)
 {
     // Change the line below to your timezone!
     date_default_timezone_set('America/Atlanta');
     $date = date('m/d/Y h:i:s a', time());
     $Login = Login::find($id);
     $Login->loginUsername = $request->input('loginUsername');
     $Login->loginPassword = $request->input('loginPassword');
     $Login->loginFirstName = $request->input('loginFirstName');
     $Login->loginLastName = $request->input('loginLastName');
     $Login->loginEmail = $request->input('loginEmail');
     $Login->loginDeleted = 0;
     $Login->save();
     return response()->json($Login);
 }