4

I have tried installing Laravel Backup for Database paulvl/backup

I have followed the instructions on how to install and configure it to my Laravel application. I am however stuck at the point where you actually run the backup command. I get this error:

$ php artisan backup:mysql-dump               
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "backup" namespace.

Any help would highly be appreciated

Here is the provider array in config/app.php Provider Array in config/app.php

Chris Otaalo
  • 131
  • 2
  • 10

1 Answers1

1

From the package docs:

Once the package's installation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array:

Backup\BackupServiceProvider::class,

These commands will be automatically registered since the BackupServiceProvider does that:

public function register()
{
    $this->registerMysqlDumpCommand();
    $this->registerMysqlRestoreCommand();
}
Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279