mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
added request validators
This commit is contained in:
@@ -6,12 +6,15 @@ use Illuminate\Http\Response;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Domain\Teams\Models\TeamFolderInvitation;
|
||||
use Illuminate\Contracts\Routing\ResponseFactory;
|
||||
|
||||
class InvitationsController extends Controller
|
||||
{
|
||||
|
||||
public function update(
|
||||
TeamFolderInvitation $invitation
|
||||
): Response {
|
||||
): ResponseFactory|Response {
|
||||
|
||||
$user = User::where('email', $invitation->email)
|
||||
->firstOrFail();
|
||||
|
||||
@@ -31,7 +34,7 @@ class InvitationsController extends Controller
|
||||
|
||||
public function destroy(
|
||||
TeamFolderInvitation $invitation
|
||||
): Response {
|
||||
): ResponseFactory|Response {
|
||||
$invitation->update([
|
||||
'status' => 'rejected',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user