Getting Started with Laravel


Getting Composer

To get started with laravel, we will first need composer which is a package manager for php. You can install it in a few ways.

If on mac, we recommend homebrew:

brew install composer

If you are on windows, we recommend chocolatey:

choco install composer

There are more options on the official website:

Creating the Laravel Project

Next, we can use composer to create a new laravel project. Let's create a project called my-blog using the following.

composer create-project laravel/laravel my-blog

Running the App

Once that command is done installing, you can start the app using the artisan command.

cd my-blog

php artisan serve

This should start laravel running on at http://localhost:8000. Visit that page in a browser and you will see your app live.