Step by Step:-
- Download git bash from the official site.
- Download composer from the official site.
- Go to C:\xampp\htdocs, Run with Git Bash Here.
- When git bash is open then run this command to create a project name composer create-project –prefer-dist laravel/laravel YOUR_PROJECT_NAME “5.6.*”
- Go to http://localhost/phpmyadmin/ and create a database.
- Connect your project with DB using .env file => DB_DATABASE = YOUR_DB_NAME.
- Inside syntax “YOUR_PROJECT_NAME” write your own project name like Student, Teacher, Doctor, etc.
- It takes time to install laravel so waits, When this installation process is complete, then our path will show.
- Then your project will be ready after that go inside the project and open it with git bash.
- Write some commands in git bash inside the project name(like here :- /c/xampp/htdocs/SCHOOL) php artisan c:cache press enter. php artisan r:clear press enter. php artisan v:clear press enter.
- Open with vscode “project name“.
- In vscode go to terminal->new+terminal.
- Write command:- php artisan make:auth insert some files in app->http->controllers->auth for user login and register in laravel wlecome.blade.php .
- Write command php artisan migrate this will create a predefined table.
- Write command php artisan serve “running applications on the PHP development server”,and it gives an URL link or IP no. Run IP no into the browser. It will give users to the welcome.blade.php page of laravel.