Managing settings to debug in Laravel
Suresh Raj Bhattarai
6:14 AM
1. You need to identify your host name first. To know the host name type the following on command mode.
C:\> hostname
SOM013
You will use this host name for setting up for proper debugging in step no 2.
2. Go to bootstrap > start.php and go to the position having following code.
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
));
Change the above code to the following like this:
$env = $app->detectEnvironment(array(
'local' => array('homestead', 'SOM013'),
));
Here we have added the host name inside the array.
This will show you the stack trace with all the environment variables which helps in debugging. Enjoy debugging using Laravel!
C:\> hostname
SOM013
You will use this host name for setting up for proper debugging in step no 2.
2. Go to bootstrap > start.php and go to the position having following code.
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
));
Change the above code to the following like this:
$env = $app->detectEnvironment(array(
'local' => array('homestead', 'SOM013'),
));
Here we have added the host name inside the array.
This will show you the stack trace with all the environment variables which helps in debugging. Enjoy debugging using Laravel!
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment