Relative Content

Tag Archive for phplaravel-8

Reset password link in Laravel does not refer to the specified guard

In my application, there are some guards (i.e. auth, student, teacher). I want to make users from each guard to be able to reset their password. So I made different reset password controllers for each guard. For example, StudentPasswordResetLinkController for student users and TeacherPasswordResetLinkController for teacher users. I also made different routes for each. In each controller, I add Password::broker('guard-name') in store function to specify which users should be referred. It looks something like this.