classes/Controllers/Commands.php
public function execute($command_name)
    {
        // Find it
        if (!($command = Command::find($command_name))) {
            App::abort(404);
        }

        // Run it, ignoring all output
        set_time_limit(self::MAX_EXECUTION_TIME);
        ob_start();
        Artisan::call($command->getName());
        ob_end_clean();

        // Return response
        return Response::json('ok');
    }
public function execute($command_name)
    {
        // Find it
        if (!($command = Command::find($command_name))) {
            App::abort(404);
        }

        // Run it, ignoring all output
        set_time_limit(self::MAX_EXECUTION_TIME);
        ob_start();
        Artisan::call($command->getName());
        ob_end_clean();

        // Return response
        return Response::json('ok');
    }
public function execute ( $ command_name ) { // Find it if ( ! ( $ command = Command :: find ( $ command_name ) ) ) { App :: abort ( 404 ) ; } // Run it, ignoring all output set_time_limit ( self :: MAX_EXECUTION_TIME ) ; ob_start ( ) ; Artisan :: call ( $ command -> getName ( ) ) ; ob_end_clean ( ) ; // Return response return Response :: json ( 'ok' ) ; }
Run one of the commands, designed to be called via AJAX

@return Response
Run one of the commands designed to be called via AJAX