How to Start with laravel step by step laravel environment setup guide

Let's start with laravel. Core php users find laravel a bit difficult to understand, users who have already used codeigniter have some idea about mvc structure of applications.

Laravel work on MVC structure.

laravel mvc

Laravel provide structured way of coding. 

Laravel 5.6 requirements

  • PHP >= 7.1.3
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension

 

Start with laravel (for windows pc)

step 1: First install composer on your computer. get link here

step 2: Then open command window  go to start->run->cmd.exe

Then type composer and check composer is installed or not the below image is a screenshot of what you should seeing in your screen

composer

step 3: After that navigate to the folder where you want to run your laravel project. by typing cd.. and cd {folder} command

i am using c:\xampp\htdocs\ folder for laravel setup in this tutorial

Note: for database you should have installed database management system in your computer like mysql or mongodb i am using here mysql database provided by xampp application.

step 4: Now switch to command window of windows and type this command 

composer create-project --prefer-dist laravel/laravel blog

here in above command we are creating a blog folder then laravel envirement inside it. you can also use

laravel new blog

Now run this command in your command window (Note: your command directory should be inside the directory where you have created laravel package in above steps.)

php artisan serve

This command will start a development server at http://localhost:8000

you can now see your project index (Homepage) by opening this link http://localhost:8000  or http://127.0.0.1:8000

now your laravel project should be running in browser.

Now if you need to connect your database with your project you can follow this link you will need a database running on your system. 

 

 

 

Other posts