I have an issue with the login, I’m pretty sure to enter the good login information but I have the error message 401 i DONT understand why please someone help me
enter image description here
I expect to understand why i have the bad answers even I enter the good login information.
2
Answers
https://stackoverflow.com/users/12750612/hichemtech for the register this is what i did public function register(Request $request) { $validatedData = $request->validate([ 'lastname' => 'required|string|max:255', 'firstname' => 'required|string|max:255', 'email' => 'required|string|email|max:255|unique:users', 'password' => 'required|string|min:8', 'adress' => 'required', 'postcode' => 'required', 'city' => 'required', 'roles_id' => 'required', 'birthday' => 'required', ]);
Can you try this code, I wouldn’t check !Auth and it could be your front end passing the data incorrectly.
If you want to check data coming from front end you can put the below code in the controller and it will appear in storage-laravel log: