コード例 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     //dd($request);
     $password = $request->get('password');
     $username = $request->get('username');
     echo $username;
     echo $password;
     $attempt = Auth\AuthController::attempt(['username' => $username, 'password' => $password]);
     if ($attempt) {
         echo "pumasok";
     } else {
         echo "error";
     }
 }