refactor(backend): reorganize domains into Core, Commerce, Ticketing and Shared
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Event\Controllers;
|
||||
|
||||
use App\Domains\Event\Resources\EventDateNoticeResource;
|
||||
use App\Domains\Event\Services\EventDateNoticeService;
|
||||
use App\Domains\Tenant\Models\Tenant;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\AnonymousResourceCollection;
|
||||
|
||||
class EventDateNoticeController extends Controller
|
||||
{
|
||||
public function __construct(private readonly EventDateNoticeService $noticeService) {}
|
||||
|
||||
public function claim(Request $request, Tenant $tenant): AnonymousResourceCollection
|
||||
{
|
||||
return EventDateNoticeResource::collection(
|
||||
$this->noticeService->claimFor($request->user(), $tenant)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user