There might be times where you need to know if a request to your Laravel app is coming from the CLI or from the web and the runningInConsole helper can tell you.

The post Check if a Laravel request is from the CLI appeared first on Laravel News.

Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.

Leave a Reply