Files
solidtime/app/Http/Requests/V1/Project/ProjectStoreRequest.php
T

33 lines
678 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Requests\V1\Project;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class ProjectStoreRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, array<string|ValidationRule>>
*/
public function rules(): array
{
return [
'name' => [
'required',
'string',
'max:255',
],
'color' => [
'required',
'string',
'max:255',
],
];
}
}