All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m33s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m36s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
24 lines
498 B
PHP
24 lines
498 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class EntryRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return config('server')
|
|
->schema('attributetypes')
|
|
->intersectByKeys($this->request)
|
|
->transform(function($item) { return $item->validation; })
|
|
->filter()
|
|
->flatMap(function($item) { return $item; })
|
|
->toArray();
|
|
}
|
|
} |