migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Http\Requests\FoodReviewReply;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class FoodReviewReplyStoreRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'review_id' => 'required|exists:food_reviews,id',
|
||||
'message' => 'nullable|string',
|
||||
'attachments.*' => 'nullable|file|mimes:jpg,jpeg,png,pdf,docx,mp4,webm|max:20480', // 20MB max
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Http\Requests\FoodReviewReply;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class FoodReviewReplyUpdateRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'message' => 'nullable|string',
|
||||
'attachments.*' => 'nullable|file|mimes:jpg,jpeg,png,pdf,docx,mp4,webm|max:20480',
|
||||
'remove_attachments' => 'nullable|array', // names of attachments to remove
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user