I’m trying to create a database backup.
using spatie/laravel-backup LIB.
The backup using the Artisan command is working well, Which is (php artisan backup:run).
Also on Kernal schedule is working well.
The issue when I try to create an api to make backup.
The code of the API :-
Artisan::queue(‘backup:run’, [‘–only-db’ => true,’–disable-notifications’ => true ]);
or even I tried Call function instead of queue.
But also didn’t fixed the issue.
enter image description here