add element icons
This commit is contained in:
parent
ac7af2463d
commit
f3f500d491
12 changed files with 49 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ class CreateElement
|
|||
throw new BadRequestException('title is required');
|
||||
}
|
||||
$description = $request->description ?? '';
|
||||
$iconImageUrl = $request->iconImageUrl === ''
|
||||
? null
|
||||
: $request->iconImageUrl;
|
||||
$richText = $request->richText ?? '';
|
||||
$pdfPath = $request->pdfPath === '' ? null : $request->pdfPath;
|
||||
$youtubeUrl = $request->youtubeUrl === ''
|
||||
|
|
@ -51,6 +54,7 @@ class CreateElement
|
|||
set: $set,
|
||||
title: $request->title,
|
||||
description: $description,
|
||||
iconImageUrl: $iconImageUrl,
|
||||
richText: $richText,
|
||||
pdfPath: $pdfPath,
|
||||
youtubeUrl: $youtubeUrl,
|
||||
|
|
@ -76,6 +80,7 @@ class CreateElement
|
|||
set: $set,
|
||||
title: $request->title,
|
||||
description: $description,
|
||||
iconImageUrl: $iconImageUrl,
|
||||
richText: $richText,
|
||||
pdfPath: $pdfPath,
|
||||
youtubeUrl: $youtubeUrl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue