This commit is contained in:
Mark Gregory
2026-07-24 11:53:07 +01:00
parent 979ae2421e
commit 8cef5db6b3
18 changed files with 147 additions and 0 deletions
@@ -0,0 +1,11 @@
<?php
namespace Modules\Products\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
final class StoreProductRequest extends FormRequest
{
public function authorize(): bool { return $this->user() !== null; }
public function rules(): array { return ['name' => ['required', 'string', 'max:255'], 'is_active' => ['sometimes', 'boolean']]; }
}