Powerful API client hosting VestaCP for Laravel
Going your project directory on shell and run this command:
$ composer require tabuna/vesta-apiAdd to config/app.php:
Service provider to the 'providers' array:
'providers' => [
// Laravel Framework Service Providers...
//...
// Package Service Providers
VestaAPI\Providers\VestaServiceProvider::class
// ...
// Application Service Providers
// ...
];Facades aliases to the 'aliases' array:
'aliases' => [
// ...
'Vesta' => VestaAPI\Facades\Vesta::class,
];Publication
php artisan vendor:publishSimple usage
$backups = Vesta::server('testVDS')->user('MyUserName')->listUserBackups();
//or class
$vesta = new Vesta('testVDS','MyUserName');
$vesta->addCron(
$request->v_min,
$request->v_hour,
$request->v_day,
$request->v_month,
$request->v_wday,
$request->v_cmd
);