Support the ongoing development of Laravel.io →
Authentication Database Forms

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?

Last updated 3 years ago.
0

Did you try to debug postRegister method in trait RegistersUsers to see what's actually happening?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.