lando / laravel

The Official Laravel Lando Plugin
https://docs.lando.dev/laravel/
GNU General Public License v3.0
13 stars 11 forks source link

Laravel recipe with xdebug #13

Closed bockhauzen closed 8 months ago

bockhauzen commented 2 years ago

Tested and working laravel recipe

Laravel 9 Php 8.0

netlify[bot] commented 2 years ago

Deploy request for lando-laravel pending review.

Visit the deploys page to approve it

Name Link
Latest commit 6b4565016874bb9f19bbcd07f4ef5a56835217f4
labboy0276 commented 2 years ago

@bockhauzen thank you for this, but the example needs some TLC.

In this section:

  appserver:
    config:
      php: .lando.php.ini
      type: php:8.0
      overrides:
        environment:
          PHP_IDE_CONFIG: "serverName=appserver"
    xdebug: debug

All you need is the overrides since everything else is defined in the root config portion of the .lando.yml file.

reynoldsalec commented 8 months ago

This seems like a good demo of using XDEBUG with the Laravel recipe, but it would need to live in a different place than the index.md; could be as simple as adding a section to the config.md page (https://docs.lando.dev/laravel/config.html) or adding a Guide.