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/.
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
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.