23 lines
556 B
PHP
23 lines
556 B
PHP
<?php
|
|
|
|
namespace App\Domains\Catalog\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateFeaturedGroupRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'group_name' => ['sometimes', 'string', 'max:255'],
|
|
'product_layout' => ['sometimes', 'string', 'in:row,column_with_image,column_with_cart,vertical_with_image,vertical_with_cart'],
|
|
'group_order' => ['nullable', 'integer'],
|
|
];
|
|
}
|
|
}
|