This repository contains the code examples and implementation details for a custom login system in Laravel 12 that includes a “Remember Me” feature.
It is based on the article: Laravel 12 Custom Login with Remember Me Feature.
Laravel’s built-in authentication scaffolding usually handles “remember me” functionality out of the box. But when building custom login forms or handling authentication logic yourself, you need to implement “remember me” manually using Laravel’s Auth APIs.
In this repo, you’ll find:
- A custom login blade view with a “Remember Me” checkbox
- Controller logic that handles login attempts with the “remember” parameter
- Proper session & cookie handling
- Logout logic that clears the remember token
- Laravel 12 project
- Composer & PHP ≥ required version
- Database configured with
userstable (including aremember_tokencolumn) - Routes & controllers folder structure ready