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