I am trying to make a simple user login and registration in laravel 5.1. It seems MUCH easier to do in laravel 5.0. I have followed the complete documentation here: This is a link . However when I fill out my registration form to write to the database nothing happens. It simply clears the passwords out and reloads the page. My mysql server is up and working here is the database.php file:
'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', '0.0.0.0'), 'database' => env('DB_DATABASE', 'test_users'), 'username' => env('DB_USERNAME', 'root'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, ],
I have migrated the user and password resets table into my database. The database works as intended and I can write to it with the DB::table('users')... command. The registration form should write to this table correct? Also when I add a user manually the login screen redirects me to my failed path I specified with protected $loginPath = '/login';
How can I make this work?
Did you try to debug postRegister method in trait RegistersUsers to see what's actually happening?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community