Forrest logo
back to the laravel tool

laravel:tldr:89642

laravel: Install the Laravel Jetstream scaffolding with a specific stack.
$ laravel new ${name} --jet --stack ${select}
try on your machine

The command "laravel new ${name} --jet --stack ${select}" is used to create a new Laravel project with the Jetstream scaffolding and a selected stack.

Here's a breakdown of the command:

  • "laravel new": This is the command to create a new Laravel project.

  • "${name}": This is a placeholder for the name you want to give to your project. You can replace "${name}" with your desired project name.

  • "--jet": It is a flag to indicate that you want to use the Laravel Jetstream package, which provides a starting point for building Laravel applications with features like authentication, teams, and more.

  • "--stack ${select}": This is a flag and a placeholder for selecting the stack you want to use for your project. The available options for "${select}" are "livewire" or "inertia". Livewire is a full-stack framework for Laravel, while Inertia is a modern approach to building SPAs (Single Page Applications) using classic server-side routing.

To use the command, you would replace "${name}" with your desired project name and "${select}" with either "livewire" or "inertia" depending on the stack you want to use. For example, if you want to create a project called "myapp" with the inertia stack, you would run:

laravel new myapp --jet --stack inertia

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