How to start with Laravel (Php Framework)

Saif ur rehman
2 min readJun 29, 2021

--

Php is a scripting language for web-based applications. So Core PHP is not user-friendly that we manage our large-scale projects but Laravel is the most popular framework of PHP. With laravel, we easily maintain large scales projects. The main feature of laravel is that it provides us some built-in features like file management. So let's start creating our first project in laravel.

Prerequisites:

Laravel is very easy to start web development. We just need few requirements for starting with laravel.

Start First Project:

So to start our first project in laravel we have to install laravel on our local computer so for this, we have to follow some steps:

  • Download composer and install it from this link.
  • Open Cmd
  • Paste below the line and press enter
composer global require laravel/installer

Now laravel is globally installed on your system you just install a new project with three words commands.

  • Next, we just install the new project of laravel.
laravel new ProjectName

Here projectName is your project like I want to create a project for Quiz web Application So I replace ProjectName with Quiz-App.

  • Now just the last two things remain in starting with our laravel development.
  • Navigate to the project which we create like I created a Quiz-App, So I write this command in cmd.
cd Quiz-App
  • Last thing that we have to do for getting the output of the above effort and hard work.
php artisan serve

When we run the above command, the below screen shows and gives us a URL that looks like this. http://127.0.0.1:8000

Copy this http://127.0.0.1:8000 URL And paste it into the search bar. And we get the output of our above effort.

Thanks for reading. Any confusion from above asks freely.

--

--

Saif ur rehman
Saif ur rehman

Written by Saif ur rehman

Student for lifetime, Web deveoper.

No responses yet