Lint
This commit is contained in:
parent
c7b23df01e
commit
857051434e
|
@ -15,7 +15,7 @@ class FormApiListAction
|
|||
use AsAction;
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $filter
|
||||
* @param string $filter
|
||||
* @return LengthAwarePaginator<Form>
|
||||
*/
|
||||
public function handle(string $filter, int $perPage): LengthAwarePaginator
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Form\Actions;
|
||||
|
||||
use App\Form\Models\Form;
|
||||
use App\Form\Models\Participant;
|
||||
use App\Form\Resources\ParticipantResource;
|
||||
use Illuminate\Http\Resources\Json\AnonymousResourceCollection;
|
||||
use Illuminate\Pagination\LengthAwarePaginator;
|
||||
|
@ -12,6 +13,9 @@ class ParticipantIndexAction
|
|||
{
|
||||
use AsAction;
|
||||
|
||||
/**
|
||||
* @return LengthAwarePaginator<Participant>
|
||||
*/
|
||||
public function handle(Form $form): LengthAwarePaginator
|
||||
{
|
||||
return $form->participants()->with('form')->paginate(15);
|
||||
|
|
|
@ -12,6 +12,9 @@ class RegisterAction
|
|||
{
|
||||
use AsAction;
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $input
|
||||
*/
|
||||
public function handle(Form $form, array $input): Participant
|
||||
{
|
||||
return $form->participants()->create([
|
||||
|
|
|
@ -45,7 +45,7 @@ class Form extends Model implements HasMedia
|
|||
}
|
||||
|
||||
/**
|
||||
* @return HasMany<Participant, self>
|
||||
* @return HasMany<Participant>
|
||||
*/
|
||||
public function participants(): HasMany
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue