Install Laravel locally

M↓

Get ready

Have a local development environment up and running.

Install Laravel on your local machine

Recommended: Use the detailed official Laravel install guide as your guideline to install Laravel on your local machine first. Here is the gist:

# Install the Laravel installer
composer global require laravel/installer

# Create a Laravel project
laravel new {project_folder_name}
shell

In some cases Laravel is the framework for the actual software that runs on top - like with Statamic or October CMS.

Add your magic

Installing a plain Laravel will not do much. Now add your templates, design and content to make it shine. You probably don't need hosting right away. Most development can happen locally. Start thinking about deployment, once it's ready.

Setup GitHub

Optional but recommended: To enable git deployments later on, init git and add GitHub as remote repo, either as a public or private. Here's how to use GitHub CLI to set up a local repo and connect it to GitHub:

# Setup local git repo
$ git init
$ git add -A
$ git commit -m 'Init'

# GitHub CLI to create/connect remote Git repo
$ gh repo new
# Follow the steps
# Push an existing local repository to github.com
# Add as remote and assign current branch as 'origin'
shell

Found a tpyo?Edit

Cookies ahead

Our support chat tool "Intercom" would like to collect some more data on you. See the related link for more details.

Docs