For Xampp Server go to https://www.apachefriends.org/download.html
For Laravel go to here https: /www.youtube.com/watch?v=i-6qK5MyjO4&t=281s and follow instructions
For windows user, you need to add laravel path to Environment variable . Follow this https://www.youtube.com/watch?v=iM3S_OHq_Y4&t=274s
- run composer install
- rename .env.example to .env
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=sec-cse
- DB_USERNAME=root
- DB_PASSWORD=""
php artisan route:cache
php artisan route:clear
php artisan config:cache
php artisan config:clear
php artisan optimize
- Now start MySQL and Apache from XAMPP Control Panel
- Create a database from localhost/phpmyadmin
- Remember You need to use same name as DB_DATABASE.
- That means I use DB_DATABASE=sec-cse
- So, My Database name is sec-cse in the phpmyadmin
- Then import database from project folder. [ My database file name is our_database.sql ]
php artisan key:generate
php artisan serve
http://127.0.0.1:8000/
For Admin purposes, go to http://127.0.0.1:8000/admin
- Email: [email protected]
- Password: 12345678