Getting Started

Quick Start#

npx @acanto/create-laravel-app myproject
cd myproject
npm start

Running npx @acanto/create-laravel-app myproject command will create a directory called myproject inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies.

Get Started Immediately#

You don’t need to install or configure tools like webpack or Babel. They are preconfigured and hidden so that you can focus on the code.

Node version#

You’ll need to have Node >= 10 on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.

(npx comes with npm 5.2+ and higher)

Selecting a template#

At the time of writing the default and also only available starter template is a basic laravel-template. We might have in a future more specific starter configurations according to common projects typologies.

You can select a custom template by appending --template [template-name] to the creation command.

If you don't select a template, we'll create your project with our base template. Templates are always named in the format laravel-template-[template-name], however you only need to provide the [template-name] to the creation command.

npx @acanto/create-laravel-app myproject --template [template-name]

You can find a list of available templates by searching for "laravel-template-*" on npm.

Our Custom Templates documentation describes how you can build your own template.