Step 1: Install Laravel 8
Start by creating a new Laravel project:
Step 2: Install Laravel UI (with Vue Auth)
Install Laravel UI and scaffold the authentication system:
Step 3: Update Environment Configuration
Open your .env
File and configure your database credentials:
For sending password reset emails:
Step 4: Run Migrations
Create necessary database tables:
Step 5: Create Change Password Blade View
Create the view file:
resources/views/changePassword.blade.php
Step 6: Create a Custom Rule to Match Old Password
Create a rule:
Edit app/Rules/MatchOldPassword.php
:
Step 7: Create ChangePasswordController
Generate controller:
Then edit app/Http/Controllers/ChangePasswordController.php
:
Step 8: Register Routes
In routes/web.php
, add:
Step 9: Run Development Server
Launch the Laravel dev server:
Open your browser and go to: