ArtisanCommand This package is develop for Run Artisan command through url. Installation composer require bilawalsh/artisan-command Add this in config/app.php. Optional 'providers' => [ BilawalSh\ArtisanCommand\ArtisanCommandServiceProvider::class, ], Run php artisan optimize