PHP Laravel Tutorial

Laravel Tutorial Day 1

Learning Objectives: To understand the fundamental about PHP Laravel, Installation and Hello World Example.

Install LAMP into Ubuntu


Reference Website to Install Composer in Ubuntu

sudo apt update

sudo apt install php-cli unzip

cd ~
curl -sS https://getcomposer.org/installer -o composer-setup.php

sudo php composer-setup.php –install-dir=/usr/local/bin –filename=composer

composer


Install Composer

https://getcomposer.org/download/

Install Laravel

https://laravel.com/docs/9.x#getting-started-on-windows


Create Hello World Project (First Project using Laravel)

Goto Command Prompt (use cmd command)

goto specific folder (eg. c:\laravelproject)

c:

md laravelproject

cd laravelproject


Now Create project (Laravel Project Create Command)

composer create-project laravel/laravel myapp1

cd myapp1

php artisan serve


Now Test Hello World in your Browser

Open Chrome Browser (Or Firefox Browser / other)

Open URL: http://127.0.0.1:8000