When you are debuging Laravel code , you may need to get some output from command window where you run the artisan command
artisan
error_log('Some message here.');
Run this code inside your php function and you can see the output in terminal