laravel app running in console code example Example: laravel app running in console app()->runningInConsole()