# Laravel

## The Basics

<details>

<summary>Xdebug in Sail</summary>

```ini
SAIL_XDEBUG_MODE=develop,debug,coverage
```

Reload sail

In PhpStorm: go to settings `PHP > Servers` and set path `/var/www/html`

</details>

<details>

<summary>Laravel Octane</summary>

Local Installation

* `composer require laravel/octane`
* `php artisan octane:install` - choose swoole
* `./vendor/bin/sail artisan sail:publish` - publish sail settings to docker/ folder
* `command=/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --host=0.0.0.0 --port=80` - change in `docker/8.2/supervisord.conf`
* `./vendor/bin/sail build --no-cache` - rebuild docker images in sail
* `./vendor/bin/sail up` - up sail

</details>
