dimanche 9 décembre 2018

Laravel 5.7 login & registration page are not working: refreshing the appropriate pages

guys! I am new to Laravel, and working on project, using the following technologies: Laravel Framework 5.7.15 XAMPP for Windows 7.2.1 PHP version: 7.2.1 Apache/2.4.29 MySQL: libmysql - mysqlnd 5.0.12-dev

Everything worked fine: the login, and the registration. And then I wanted to restrict registration to the app. So I found below solution to the problem on StackOverflow: How to disable registration new user in Laravel 5 So I added it to app/Http/Controlers/Auth/RegisterController.php:

public function showRegistrationForm()
{
    return redirect('login');
}

public function register()
{

}

After that (or may be something else, but I am not sure) the login page redirects to login page without logging in to the system. Similarly, registration page (which I remember was redirecting to the login page) is also refreshing the page without registering me to the system.

What I did to solve the problem: 1) I removed the above methods from the file. The pages do not work as intended. Both pages refresh and do not give any errors. 2) I removed my database and migrates again. No results.

I just do not want to recreate the project because of this problem, and I hope that someone can help.

Thanks a lot!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire