paint-brush
[Laravel tips] How to temporarily change a laravel environment variable without updating the .envby@djug
2,217 reads
2,217 reads

[Laravel tips] How to temporarily change a laravel environment variable without updating the .env

by Youghourta Benali2mMay 10th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Imagine the following scenario: you are working on a laravel application that dispatches some jobs to a queue. You notice in your log file that a specific job is throwing an exception, but you can’t debug it directly (with <code class="markup--code markup--p-code">dd()</code> for instance), since the job is consumed by a worker elsewhere.
featured image - [Laravel tips] How to temporarily change a laravel environment variable without updating the .env
Youghourta Benali HackerNoon profile picture
Youghourta Benali

Youghourta Benali

@djug

L O A D I N G
. . . comments & more!

About Author

Youghourta Benali HackerNoon profile picture
Youghourta Benali@djug

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite