I want to backup my whole Laravel application mysql database from my application by clicking a button, anyone to help?
(Laravel Backup) by Spatie.
this package provides you with a command (php artisan backup:run
). which is not exactly what you need.
But you can create a button in your admin section with a link to a route. and from there (either from the route or controller) you can call this command by
Artisan::call('backup:run');
which will trigger a backup.