Files
col-thinkspace/app/Http/Requests/ProductRequest.php
Chief-spartan-117 972264e361
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
init
2026-01-21 11:13:09 +05:45

31 lines
682 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ProductRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
"name" => "required|string|max:255",
"url" => "required|string|max:255",
"display_status" => "in:active,draft"
];
}
}