dimanche 4 septembre 2016

How can a Laravel 4 class detect that it is running in an Artisan task vs. a browser request?

I have some application boot code that needs to know if it is currently running in an artisan task vs. being called in a browser request.

How do I detect this in Laravel 4?

Aucun commentaire:

Enregistrer un commentaire