laravel-dump-server icon indicating copy to clipboard operation
laravel-dump-server copied to clipboard

Laravel dump-server does not log anything on console

Open cosecantt opened this issue 6 years ago • 10 comments

Laravel upgraded from 5.5->5.6 then 5.6-.5.7

I can run following command

php artisan dump-server

shows following:

 [OK] Server listening on tcp://127.0.0.1:9912
 // Quit the server with CONTROL-C.

But

dd($user)

does not log on the console. Instead it shows on the browser.

cosecantt avatar Sep 29 '18 13:09 cosecantt

you need to use the dump function not die and dump

JulianMar avatar Oct 01 '18 13:10 JulianMar

@cosecantt https://laracasts.com/series/whats-new-in-laravel-5-7/episodes/2

jagroop avatar Oct 02 '18 04:10 jagroop

you need to use the dump function not die and dump

I've tired both dump() and dd(). It does not work either.

cosecantt avatar Oct 03 '18 08:10 cosecantt

@cosecantt what's your server setup? Are you using homestead/docker/valet?

mpociot avatar Oct 04 '18 07:10 mpociot

I am using following:

PHP 7.2.9
Homestead v7.17.00
Vagrant 2.1.4
Oracle VirtualBox Version 5.2.18 r124319 (Qt5.6.2)
Windows 10 64bit

Upgraded from Laravel 5.5 to 5.6 and 5.6 to 5.7 following the upgrade manual on documentation

cosecantt avatar Oct 05 '18 08:10 cosecantt

Similar issue but with different setup. And I did use the dump() function as described in the docs:

PHP 7.1
Running locally with php artisan serve
php artisan dump-server also running a different pane

No output.

ctrlaltdylan avatar Nov 19 '18 23:11 ctrlaltdylan

Same issue using:

Laravel Valet 2.1.1 PHP 7.2.10

it works however in laravel telescope but not with each request.

aurawindsurfing avatar Nov 26 '18 18:11 aurawindsurfing

@mpociot i am using it with docker? should it work out-of-the-box with it or i need to configure something

BobbyBorisov avatar Dec 29 '18 14:12 BobbyBorisov

i got this problem also...

the real problem was i installed laravel telescope, went to the url and afterwards started dump-server... all my dumps() went to telescope... after closing telescope and restarting dump-server, everything started showing correctly

matijakovacevic avatar Feb 07 '19 23:02 matijakovacevic