mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
#591 - storage-providers
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Models\Project;
|
||||
use App\Models\StorageProvider;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class EditStorageProvider
|
||||
{
|
||||
@ -12,6 +13,8 @@ class EditStorageProvider
|
||||
*/
|
||||
public function edit(StorageProvider $storageProvider, Project $project, array $input): StorageProvider
|
||||
{
|
||||
Validator::make($input, self::rules())->validate();
|
||||
|
||||
$storageProvider->profile = $input['name'];
|
||||
$storageProvider->project_id = isset($input['global']) && $input['global'] ? null : $project->id;
|
||||
|
||||
|
Reference in New Issue
Block a user