Forrest logo
back to the laravel tool

laravel:tldr:e5752

laravel: Create a new Laravel application.
$ laravel new ${name}
try on your machine

The command laravel new ${name} is used to create a new Laravel project with a specified name.

Here's what each part of the command means:

  • laravel: It is the command-line executable for Laravel, a popular PHP framework used for web application development. This command is used to interact with Laravel and perform various tasks.

  • new: It is an argument passed to the laravel command to indicate that we want to create a new Laravel project.

  • ${name}: It is a placeholder for the desired name of the Laravel project. You should replace ${name} with your preferred name without the ${}. For example, if you want to name your project "myapp", you would run laravel new myapp.

When the command is executed, Laravel will create a new directory with the specified project name. Inside this directory, it will generate all the necessary files and folders required to start a Laravel project. These include the Laravel application structure, default configuration files, and other dependencies specified in the composer.json file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the laravel tool