Artisan::output PHP Method

output() public static method

Get the output for the last run command.
public static output ( ) : string
return string
        public static function output()
        {
            //Method inherited from \Illuminate\Foundation\Console\Kernel
            return \Someline\Console\Kernel::output();
        }

Usage Example

 /**
  * Display all routes in browser
  *
  */
 public function listRoutes()
 {
     \Route::get('routes', function () {
         \Artisan::call('route:list');
         return "<pre>" . \Artisan::output();
     });
 }
All Usage Examples Of Artisan::output