This is a template for creating applications using Laravel 11 and HeroUI (v2).
To create a new project based on this template using create-laravel
, run the following command:
npx create-next-app -e https://github.com/heroui-inc/laravel-template.git
After creating the project you will have the base template using Laravel 11.31
Since this is a starter template, you don't need to follow all the steps in the Laravel 12 upgrade guide. The steps required to upgrade this template are shown below:
- In
composer.json
update thelaravel/framework
version to^12.00
- You also need to update the minimum version of
inertiajs/inertia-laravel
to^2.0.1
in order to work with Laravel 12
composer update
You can use one of them npm
, yarn
, pnpm
, bun
, Example using npm
:
npm install
npm run dev
If you are using pnpm
, you need to add the following code to your .npmrc
file:
public-hoist-pattern[]=*@heroui/*
After modifying the .npmrc
file, you need to run pnpm install
again to ensure that the dependencies are installed correctly.