all(); if(isset($inputData['welcome_video_create']) && $inputData['welcome_video_create']) { $inputData['is_welcome_video'] = true; $videos=(new VideoSetting())->getVideos($inputData); if($videos->isEmpty()){ return true; } } } /** * Get the validation error message. * * @return string */ public function message() { return 'Already set welcome video.'; } }