Web Technologies Week 08 (Laravel and VS Installation)
Web Technologies Week 08 (Laravel and VS Installation)
Latest Laravel version depends on the PHP version which is automatically installed during XAMPP
installation.
URL: https://www.apachefriends.org
1
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
- After successful installation, XAMPP Control Panel would look like below.
2
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
URL: https://getcomposer.org/download/
- Run composer.exe after download. During installation, if you are prompted for php.exe path, its
address in your system is xampp/php by default.
3
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
- Once composer has been installed, test it by typing the command composer in the command
prompt (cmd). It will display composer version which is version 2.0.7 in my case.
4
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
In global installation, Laravel is only installed once and then it is used for each new Project. In local
installation, Laravel is installed for each new Project. Use the following URL to understand local and
global installation of Laravel.
URL: https://laravel.com/docs/7.x/installation
- Type following commands in the Command Prompt to create a folder CRUD and install Laravel in
this folder. The name of our Laravel Project is CRUD.
1. cd c:\xampp\htdocs
2. composer create-project --prefer-dist laravel/laravel FA20_Student_MIS
5
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
6
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
- Now, open the browser and type one of the following in the addresses bar to start the Laravel
application
1. http://127.0.0.1:8000
2. http://localhost/FA20_Student_MIS/public/
7
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
- After Successful installation, Open Laravel project using VS Code using one of the TWO
methods.
8
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
9
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
10
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
- Once the database is created, we need to tell our Laravel project the details about the
database.
11
Created by: Dr. Maaz Rehan CSC336 Web Programming COMSATS University Islamabad, Pakistan
- Modify the following property in your .env file according to your database name. MY
database name is fa20_student_mis.
***
12