This commit is contained in:
2025-09-25 03:03:31 +05:00
commit ae480cf2f6
2768 changed files with 1485826 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Requests\Api\V1\Cart;
use Illuminate\Foundation\Http\FormRequest;
class CartAddProductRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, array>
*/
public function rules(): array
{
return [
'product_id' => ['required', 'integer', 'exists:products,id'],
'quantity' => ['nullable', 'integer'],
];
}
}