You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-40
Original file line number
Diff line number
Diff line change
@@ -8,47 +8,9 @@ Bringing the [Symfony Var-Dump Server](https://symfony.com/doc/current/component
8
8
9
9
This package will give you a dump server, that collects all your `dump` call outputs, so that it does not interfere with HTTP / API responses.
10
10
11
-
> If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming [PHP Package Development](https://phppackagedevelopment.com) video course.
This will publish a file called `debug-server.php` in your `config` folder.
30
-
In the config file, you can specify the dump server host that you want to listen on, in case you want to change the default value.
31
-
32
-
## Usage
33
-
34
-
Start the dump server by calling the artisan command:
35
-
36
-
```bash
37
-
php artisan dump-server
38
-
```
39
-
40
-
You can set the output format to HTML using the `--format` option:
41
-
42
-
```bash
43
-
php artisan dump-server --format=html > dump.html
44
-
```
45
-
46
-
And then you can, as you are used to, put `dump` calls in your methods. But instead of dumping the output in your current HTTP request, they will be dumped in the artisan command.
47
-
This is very useful, when you want to dump data from API requests, without having to deal with HTTP errors.
48
-
49
-
You can see it in action here:
50
-
51
-

13
+
You can find the documentation on the [Beyond Code website](https://beyondco.de/docs/laravel-dump-server/installation).
0 commit comments