Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

azc99's avatar
Level 4

IGNITION_EDITOR not providing option to select ide

laravel 11.9. breeze. when I have an error there is no option to edit in ide.

composer.json

"require": {
        "php": "^8.2",
        "laravel/folio": "^1.1",
        "laravel/framework": "^11.9",
        "laravel/tinker": "^2.9",
        "livewire/flux": "^1.0",
        "livewire/flux-pro": "^1.0",
        "livewire/livewire": "^3.4",
        "livewire/volt": "^1.0"
    },
    "require-dev": {
        "fakerphp/faker": "^1.23",
        "laravel/breeze": "^2.2",
        "laravel/pint": "^1.13",
        "laravel/sail": "^1.26",
        "mockery/mockery": "^1.6",
        "nunomaduro/collision": "^8.0",
        "pestphp/pest": "^3.2",
        "pestphp/pest-plugin-laravel": "^3.0",
        "spatie/laravel-ignition": "^2.8"
    },

.env

IGNITION_EDITOR="phpstorm"

config/ignition.php

    'editor' => env('IGNITION_EDITOR', 'phpstorm'),

Does anyone have any ideas about why IGNITION_EDITOR is not providing an option to select ide?

0 likes
3 replies
LaryAI's avatar
Level 58

To resolve the issue where the IGNITION_EDITOR environment variable is not providing an option to select the IDE in Laravel, you can follow these steps:

  1. Ensure Correct Environment Variable: Double-check that the IGNITION_EDITOR variable is correctly set in your .env file. It should look like this:

    IGNITION_EDITOR=phpstorm
    

    Make sure there are no extra spaces or invisible characters.

  2. Clear Configuration Cache: If you have cached your configuration, the changes in the .env file might not be reflected. Run the following command to clear the configuration cache:

    php artisan config:clear
    
  3. Check Ignition Configuration: Ensure that the config/ignition.php file is correctly set to use the environment variable:

    'editor' => env('IGNITION_EDITOR', 'phpstorm'),
    

    This line should be present and correctly configured.

  4. Verify Ignition Package Version: Make sure you are using a compatible version of the spatie/laravel-ignition package. You can check the installed version by running:

    composer show spatie/laravel-ignition
    

    Ensure it matches the version constraints in your composer.json.

  5. Check for IDE Support: Verify that the IDE you are trying to use is supported by Ignition. Common supported editors include phpstorm, vscode, sublime, etc.

  6. Restart the Server: After making these changes, restart your local development server to ensure all changes are applied:

    php artisan serve
    
  7. Check for Errors: If the problem persists, check the Laravel logs for any errors that might indicate why the editor option is not appearing. You can find the logs in storage/logs/laravel.log.

By following these steps, you should be able to resolve the issue with the IGNITION_EDITOR not providing an option to select the IDE. If the problem continues, consider checking the Ignition documentation or reaching out to the community for further assistance.

azc99's avatar
Level 4

UPDATE I cleared cache for the nth time, restarted phpstorm, and it started working!!!

Please or to participate in this conversation.