wip
This commit is contained in:
30
app/Jobs/SendSberToSystem.php
Normal file
30
app/Jobs/SendSberToSystem.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Jobs;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class SendSberToSystem implements ShouldQueue
|
||||||
|
{
|
||||||
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new job instance.
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute the job.
|
||||||
|
*/
|
||||||
|
public function handle(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -174,12 +174,18 @@ class NovaSberPaymentOrderItem extends Resource
|
|||||||
]);
|
]);
|
||||||
})->icon('server')
|
})->icon('server')
|
||||||
->sole()
|
->sole()
|
||||||
->withoutConfirmation(),
|
->withoutConfirmation()
|
||||||
|
->canSee(function ($request) {
|
||||||
|
return auth()->user()->isSystemUser();
|
||||||
|
}),
|
||||||
|
|
||||||
SyncWithSystem::make()
|
SyncWithSystem::make()
|
||||||
->icon('cloud')
|
->icon('cloud')
|
||||||
->sole()
|
->sole()
|
||||||
->withoutConfirmation(),
|
->withoutConfirmation()
|
||||||
|
->canSee(function ($request) {
|
||||||
|
return auth()->user()->isAdmin();
|
||||||
|
}),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user