mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 09:01:42 -04:00
Updated to latest
This commit is contained in:
@@ -143,6 +143,7 @@ class StudioPlusVideoController extends Controller
|
||||
'thumbnail',
|
||||
'category',
|
||||
'asinData',
|
||||
'videoType',
|
||||
'channel.user',
|
||||
'urls',
|
||||
])
|
||||
@@ -919,7 +920,22 @@ class StudioPlusVideoController extends Controller
|
||||
}
|
||||
|
||||
public function createVideo(Request $request, StudioPlusChannel $studioPlusChannel)
|
||||
{
|
||||
{
|
||||
//validation for new video uploader
|
||||
if($request->has('studio_plus_video_type_id')){
|
||||
|
||||
$request->validate([
|
||||
'studio_plus_video_type_id' => ['required', 'exists:studio_plus_video_types,id'],
|
||||
'studio_plus_category_id' => ['required', 'exists:studio_plus_categories,id'],
|
||||
'studio_plus_asin_id' => ['required_without:is_short'],
|
||||
'job_request_id' => $request->video_type['need_job_request'] ? ['required', 'exists:job_requests,id'] : ['nullable'],
|
||||
'title' => ['required'],
|
||||
'asin' => ['required'],
|
||||
'product_name' => ['required'],
|
||||
'brand' => ['required']
|
||||
]);
|
||||
}
|
||||
|
||||
$ret = (new UploadService())->createVideo($request, $studioPlusChannel);
|
||||
|
||||
if ($ret) {
|
||||
|
||||
Reference in New Issue
Block a user