Skip to content

laravel 12 tutorial showing how to build a custom login system with “Remember Me” functionality. Includes setup for remember_token, custom login method, and login form checkbox.

Notifications You must be signed in to change notification settings

itstuffsolutions/laravel-12-custom-login-with-remember-me-feature

Repository files navigation

Laravel 12 — Custom Login with Remember Me Feature

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.


🌟 Overview

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


🛠 Installation & Setup

Prerequisites

  • Laravel 12 project
  • Composer & PHP ≥ required version
  • Database configured with users table (including a remember_token column)
  • Routes & controllers folder structure ready

About

laravel 12 tutorial showing how to build a custom login system with “Remember Me” functionality. Includes setup for remember_token, custom login method, and login form checkbox.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages