Simplify Installing and Updating your App With Laravel Executor

Simplify Installing and Updating your App With Laravel Executor

Laravel Executor is a package by Ash Allen that simplifies running code and commands when installing or updating your web application.

This package provides “executor” classes you can run from the artisan command line. A basic example is running the following command after pulling the latest version of a project from a remote repository:


namespace App\Executor;

use AshAllenDesign\LaravelExecutor\Classes\Executor;

class AppUpdate extends Executor
    public function run(): Executor
        return $this->simpleDesktopNotification('Starting Executor', 'Starting the AppUpdate Executor.')
                    ->runExternal('composer install')

The command would run composer installation, run artisan migrations, clear cache, and notify the user via desktop notifications.

To trigger the executor, you run artisan. Using the example above, it would look like:

php artisan executor:app-update

Here’s a visual of running an executor via the command line as seen in the project’s readme:

If you have a scenario where you want to manually run an executor, you can use the run() method:

(new AppInstall())->run();

Learn More

You can learn more about this package, get full installation instructions, and view the source code on GitHub at ash-jc-allen/laravel-executor.

Filed in: News
Laravel News Partners

Laravel Jobs

Backend Software Engineer (PHP Developer)
Austin TX, Bonita Springs FL
Certified eSupport Corp
Backend PHP Developer
Hamburg, Germany
Full-Stack Engineer (Mid to Senior)
Remote (EST, CST)
Senior Laravel Developer (AI Applications)
Remote from anywhere in the UK or from our London office
GreenShoot Labs
Full Stack Engineer


Join 31,000+ others and never miss out on new tips, tutorials, and more.