Forrest logo
back to the laravel tool

laravel:tldr:f0a6a

laravel: Use the latest development release.
$ laravel new ${name} --dev
try on your machine

The command "laravel new ${name} --dev" is used to create a new Laravel project with a specific name (${name}) and include development dependencies (--dev).

Here's a breakdown of the command:

  • "laravel": This is the Laravel command-line interface (CLI) tool. It is used to perform various actions related to Laravel projects.

  • "new": This is one of the commands provided by the Laravel CLI. It is used to create a new Laravel project based on the latest version.

  • "${name}": This is a placeholder for the name you want to give to your Laravel project. You should replace it with your desired project name. For example, if you want to name your project "myapp", you would replace "${name}" with "myapp".

  • "--dev": This is an optional flag that stands for "development". By including this flag, Laravel will install additional packages and dependencies that are useful for development purposes, such as testing libraries, debugging tools, and so on. These dependencies are not typically needed in a production environment.

In summary, running this command will create a new Laravel project with the specified name, including any necessary development dependencies.

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