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