Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

murilo's avatar
Level 10

Laravel Spatie Backup / On production , artisan does not recognize the command - php artisan backup:run

Hello , when I try to run the command on production -

php artisan backup:run

it says -

There are no commands defined in the "backup" namespace.

I tried to run this command on production -

sudo php artisan config:cache
sudo php artisan cache:clear
sudo composer dump-autoload

but the artisan still not recognize the laravel backup . I checked my composer.json file in the production and laravel backup is there -

 "require": {
        "php": "^7.2.5",
          ....
        "spatie/laravel-backup": "^6.16",
}

do I have to run something to update this class ?

0 likes
2 replies

Please or to participate in this conversation.