Getting Started with Laravel

12.25.2021

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: https://formulae.brew.sh/formula/composer

brew install composer

If you are on windows, we recommend chocolatey: https://community.chocolatey.org/packages/composer

choco install composer

There are more options on the official website: https://getcomposer.org/download/.

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.