mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
API Feature (#334)
This commit is contained in:
@ -126,7 +126,7 @@ public static function form(): array
|
||||
public static function action(array $data): void
|
||||
{
|
||||
try {
|
||||
app(CreateStorageProvider::class)->create(auth()->user(), $data);
|
||||
app(CreateStorageProvider::class)->create(auth()->user(), auth()->user()->currentProject, $data);
|
||||
} catch (Exception $e) {
|
||||
Notification::make()
|
||||
->title($e->getMessage())
|
||||
|
@ -22,6 +22,6 @@ public static function form(): array
|
||||
|
||||
public static function action(StorageProvider $provider, array $data): void
|
||||
{
|
||||
app(EditStorageProvider::class)->edit($provider, auth()->user(), $data);
|
||||
app(EditStorageProvider::class)->edit($provider, auth()->user()->currentProject, $data);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user