Skip to content

Commit

Permalink
laravel configuration (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: tyler36 <[email protected]>
  • Loading branch information
tyler36 and tyler36 authored Nov 26, 2024
1 parent 63eb523 commit ad73f45
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [Framework configuration](#framework-configuration)
- [CakePHP](#cakephp)
- [Drupal](#drupal)
- [Laravel](#laravel)
- [OpenMage](#openmage)
- [Silverstripe](#silverstripe)
- [WordPress](#wordpress)
Expand Down Expand Up @@ -94,6 +95,28 @@ Profiling in a production environment is not recommended.
- Run `ddev xhprof` to start profiling.
- XHGui is now available at `https://yourproject.ddev.site:8142`

### Laravel

- Install `perftools/php-profiler`

```shell
ddev composer require perftools/php-profiler --dev
```

- Add the following line to `app/Providers/AppServiceProvider.php` to include the collector.

```php
public function boot(): void
{
if (file_exists("/mnt/ddev_config/xhgui/collector/xhgui.collector.php")) {
require_once "/mnt/ddev_config/xhgui/collector/xhgui.collector.php";
}
...
```

- Run `ddev xhprof` to start profiling.
- XHGui is now available at `https://yourproject.ddev.site:8142`

### OpenMage

- Install `perftools/php-profiler`
Expand Down

0 comments on commit ad73f45

Please sign in to comment.