Skip to content

Creating a Laravel project

After the initial laravel new install, complete the following steps before writing any application code.

Install morphsites/laravel-standards

Install the internal standards package and run the installer:

bash
composer config repositories.gitlab composer https://gitlab.morphsites.net/api/v4/group/64/-/packages/composer/
composer require --dev morphsites/laravel-standards

php artisan standards:install

This configures Pint, PHPStan, and other tooling to our standards.

TIP

This step requires GitLab registry access. If you have not set that up on your machine yet, follow the internal packages guide first.

Enhance support for AI agents

Install Laravel Boost if it is not already included by the project template:

bash
composer require laravel/boost --dev

Install the Spatie AI guidelines package as a dev dependency:

bash
composer require spatie/guidelines-skills --dev

This makes Spatie's PHP and Laravel style guides available as context for AI coding assistants.

Finally, run Boost's install command:

bash
php artisan boost:install