Answer the question
In order to leave comments, you need to log in
How to implement authorization in Laravel?
Can't log in, here is the code
public function createuser()
{
$userNickname = Input::get('username');
$password = Input::get('password');
$userPassword = $password;
$side = Input::get('side');
$user = new User;
$user->user_nickname = "$userNickname";
$user->password = "$userPassword";
$user->side = "$side";
$user->save();
if (Auth::attempt(array('user_nickname' => $user->user_nickname, 'password' => $user->password), true)) {
return Redirect::route('gameIndex');
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question