migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Frontend\Http\Requests\Testimonial;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class TestimonialStoreRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'name' => 'required|string|max:255',
|
||||
'description' => 'required|string|max:1000',
|
||||
'thumbnail_image' => 'nullable',
|
||||
'video_url' => 'nullable|string|max:255',
|
||||
'note' => 'nullable|string|max:500',
|
||||
'ratting' => 'required',
|
||||
'status' => 'nullable|in:0,1', // 1=Active, 2=Inactive
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Frontend\Http\Requests\Testimonial;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class TestimonialUpdateRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'name' => 'required|string|max:255',
|
||||
'description' => 'required|string|max:1000',
|
||||
'thumbnail_image' => 'nullable',
|
||||
'video_url' => 'nullable|string|max:255',
|
||||
'note' => 'nullable|string|max:500',
|
||||
'ratting' => 'required',
|
||||
'status' => 'nullable|in:0,1', // 1=Active, 2=Inactive
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user