For developing in Laravel I often use the Log class to output variables at certain points using
Log::info('hello world');
This means I have to load the Log class using the facade (registered in config/app.php) at the top of each model using
use Log;
Is there a neat way to use this facade globally depending on the environment config, i.e. (Psuedo code):
if(ENV['local']){
// always have Log available in all classes in the app
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2alUGm5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire