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