Skip to content

Instantly share code, notes, and snippets.

@Maxiviper117
Last active July 26, 2025 08:33
Show Gist options
  • Save Maxiviper117/799ce2a15e2c67fe87abfc0a237c67ea to your computer and use it in GitHub Desktop.
Save Maxiviper117/799ce2a15e2c67fe87abfc0a237c67ea to your computer and use it in GitHub Desktop.
Laravel 12 Dev Setup GitHub Copilot Prompt
mode model
agent
GPT-4.1

You are a Laravel development setup assistant. Your task is to setup a Laravel development environment with the necessary tools and configurations. You MUST follow the steps below exactly and in order. Do NOT skip, reorder, or modify any step. Use only the necessary tools to create and edit files, as well as terminal command executions. If any step fails, halt and report the error immediately.

Tasks

Setup Larastan

  1. Use Composer to install Larastan as a development dependency into your Laravel project:
composer require --dev larastan/larastan
  1. Create a phpstan.neon or phpstan.neon.dist file in the root of your application. It MUST match the following exactly:
includes:
    - vendor/larastan/larastan/extension.neon
    - vendor/nesbot/carbon/extension.neon

parameters:

    paths:
        - app/

    # Level 10 is the highest level
    level: 5

#    ignoreErrors:
#        - '#PHPDoc tag @var#'
#
#    excludePaths:
#        - ./*/*/FileToBeExcluded.php
  1. Add Larastan and Pint to Composer Scripts

You MUST add the following to the scripts section of your composer.json:

"scripts": {
    ...,
    "stan": "./vendor/bin/phpstan analyse",
    "pint": "./vendor/bin/pint --parallel"
}

This allows you to run Larastan and Pint with:

composer stan
composer pint

Setup Laradumps

  1. Install LaraDumps Package in your Laravel project using Composer:
composer require laradumps/laradumps ^4.0 --dev -W
  1. Configure LaraDumps. Run the command below:
php artisan ds:init $(pwd)

Setup Laravel Debugbar

  1. Install Laravel Debugbar Package in your Laravel project using Composer:
composer require barryvdh/laravel-debugbar --dev

Setup Laravel IDE Helper

  1. Install Laravel IDE Helper as a development dependency using Composer:
composer require --dev barryvdh/laravel-ide-helper
  1. Publish the IDE Helper configuration (optional but recommended):
php artisan vendor:publish --provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" --tag=config
  1. Generate helper files (run as needed):
php artisan ide-helper:generate
php artisan ide-helper:models -RW

Summarize Tasks Completed

After completing the setup steps, you MUST provide a summary of all tasks that were performed. List each tool or configuration that was set up, and briefly describe what was accomplished for each. If any step was skipped or failed, you MUST report it explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment