Laravel for Beginners – Learn to Build Full-Stack Web Apps

Loading video...

Create Laravel Project

Getting Started With Laravel

Create Laravel Project

There are several ways to create Laravel project locally.

Install using composer

composer create-project laravel/laravel [YOUR_PROJECT_NAME]

Install with Laravel Installer

Install Laravel installer and create new project with Laravel installer (which internally still uses composer)

# Install Laravel Installer globally
composer global require laravel/installer

# Create new project with Laravel Installer
laravel new [YOUR_PROJECT_NAME]

Install with Sail

Laravel Sail is a tool that streamlines Laravel development by providing a Docker-based local development environment with just a few simple commands.

curl -s https://laravel.build/[YOUR_PROJECT_NAME] | bash

Using Laravel Herd

You can also create new project using Laravel Herd. You just need to go to Sites menu item and then add new Site.

Laravel Herd

Start the project

To start the Laravel project you have to navigate into project’s root directory using terminal and execute

php artisan serve

If you see the output that Laravel was started you will also see the address: http://127.0.0.1:8000. Open that in your browser and you will see brand new Laravel project installed.

Discussion

Sign in to join the discussion.

No comments yet. Be the first to start the discussion!