Preparing Tools and Installing Laravel

Before you start Learning Laravel 7 with this tutorial, you must be familiar with PHP principle and  PHP Object-Oriented.

Preparing your self

You need to know how the laravel serves the request

first, the web browser sends a request to the server which will manged in the routes file

then in routs file load the  specific controller 

after that, the controller will delegate all the information necessary from the module to make a response

then the view will receive the data from the controller and generate an HTML structure for a user  

 

Preparing Server 

after preparing your self to laravel you will jump to preparing your machine to laravel.

Any server you use must ensure that it is qualified to laravel by meeting these requirements:

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

in windows user, you can check the PHP version using command prompt

in command prompt run the following code 

php -v

you will  get the PHP version 

php version

How to install laravel on windows 10

we suggest using XAMPP server it will install all necessary requirement 

Step1: Download PHP and MySQL 

XAMPP is the most popular PHP development environment, its completely free so you can Download

xampp 

after download, the XAMPP make sure the XAMPP apache is work well

start xampp apache

Step2: Install composer 

A composer is a Dependency Manager for PHP,  make sure you have Composer installed on your machine 

open the https://getcomposer.org/ and download Windows version

you need to check that composer's system-wide vendor bin directory in your $PATH

for windows user, you can edit this in a system property

open System property

then go to the Path

Finlay add the composer path %USERPROFILE%\AppData\Roaming\Composer\vendor\bin

Step3: Install Laravel

download the Laravel installer using Composer:

composer global require laravel/installer

now you have installed the laravel on your machine 

you can create a new project from the command line 

laravel new blog