
Step 1: Install Laravel 8
Open your terminal and run the following command to create a new Laravel project:
composer create-project --prefer-dist laravel/laravel School_MS_Laravel8
Step 2: Install Laravel UI & Auth Scaffolding
Laravel UI sets up frontend scaffolding with authentication features (login, register, forgot password).
cd School_MS_Laravel8
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
If you prefer Bootstrap instead of Vue:
php artisan ui bootstrap --auth
Step 3: Configure Database & Mail
1. Database Configuration (.env
)
Open .env
and update with your DB info:
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_db DB_USERNAME=root DB_PASSWORD=your_password
2. Email Settings for Forgot Password
Also in .env
, add your email credentials to enable password reset:
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=your_email@gmail.com MAIL_PASSWORD=your_email_password MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=your_email@gmail.com MAIL_FROM_NAME="${APP_NAME}"
Note: If using Gmail, you may need to enable App Passwords or allow less secure apps in your Gmail account.
Step 4: Run Migrations
Run this to create default Laravel auth tables (users
, password_resets
, etc.):
php artisan migrate
Step 5: Start the Development Server
php artisan serve
Open your browser and navigate to:
http://localhost:8000
Or if you're using the /public
path:
http://localhost/School_MS_Laravel8/public/
You're Done!
You now have:
-
A working Laravel 8 app
-
Vue-based login, register, and forgot password system
-
Email-ready password reset setup
Let me know if you'd like to:
-
Added user roles (admin, student, teacher)
-
Build dashboards
-
Add CRUD for student records