initial commit
This commit is contained in:
25
app/Http/Requests/LinkRequest.php
Normal file
25
app/Http/Requests/LinkRequest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Rules\TraningVideoValidationRule;
|
||||
class LinkRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'section_name' => 'required',
|
||||
'link' => 'required|regex:'.config('constant.VIMEO_VIDEO_LINK_VALIDATION'),
|
||||
'status' => 'required|numeric',
|
||||
'welcome_video_create'=> new TraningVideoValidationRule(),
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user