Login remember button and placeholders
How do I add the placeholders to the login panel ? and how do I also make the remember button work when a user logs out ?
3 Replies
you will need to overwrite the login component as described here
https://filamentphp.com/docs/3.x/panels/users#customizing-the-authentication-features
and add
->placeholder('John Doe')
as for the make the remember button work when a user logs out
I didnt get it tbh πthanks you are right I have fixed the placeholder! π the remember button I don't know if it has the function to remember the email and password by default.
I do not notice that it saves it when the user logs out.
The "Remember Me" checkbox simply uses Laravel's "remember me" feature, which stores a remember_token in the database which matches a cookie value on the user's browser. This lets them restart their session without logging in, on next visit. But if they click logout, it is erased. That's all Laravel stuff.
As for remembering prior email addresses and passwords "in the browser", that's entirely a function of the browser, which relies on whether the user has those features turned on in their browser. Filament doesn't need to do anything extra for that to work.