Deploy without SSH returns 404 error
Hi all,
Today, I've followed this French tutorial https://openclassrooms.com/courses/decouvrez-le-framework-php-laravel-1/deploiement-4 in order to deploy without SSH access because my owner don't give me one.
So, I've upload all files on my server, I've changed the .env file and the index.php file. Everything is now ok, my homepage is displayed but when I'm trying to submit user form connexion who's displayed on my homepage, its return me a 404 error.
Not Found The requested URL /homez.2015/nicolaspln/ovaleid/index.php was not found on this server.
Here is my code :
public function postLogin(Request $request)
{
$this->validate($request, [
'licence' => 'required|numeric|min:13'
]);
$official = User::where('licence', $request->licence)->first();
if (count($official) != 0) {
if ($request->password) {
if (Hash::check($request->password, $official->password)) {
$message = "Bienvenue " . $official->firstName . " " . strtoupper($official->lastName);
$this->auth->login($official, $request->has('remember'));
return redirect(route('user.profile'))->with('success', $message);
} else {
return redirect(route('user.login'))->withInput()->withErrors('Le mot de passe entré est inccorect');
}
} else {
return redirect(route('user.newPassword'))->with('licence', $request->licence);
}
} else {
return redirect(route('user.login'))->withErrors('Numéro de licence incorrect')->withInput();
}
}
I don't know I've mess, and if it's a configuration or just a mistake on my code.
Thanks guys
Please or to participate in this conversation.