post settings video

This commit is contained in:
Shohrat 2023-02-24 05:19:57 +00:00
parent a488efe6b3
commit 6866f94346
4 changed files with 6 additions and 3 deletions

View File

@ -6,6 +6,10 @@
RewriteEngine On
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
##
## You may need to uncomment the following line for some hosting environments,
## if you have installed to a subdirectory, enter the name here also.

View File

@ -16,7 +16,7 @@ class PostResource extends JsonResource
public function toArray($request)
{
$locale = $request->get('locale');
$path = Config::get('app.cdn').Config::get('cms.storage.media.path');
$path = Config::get('app.url').Config::get('cms.storage.media.path');
return [
'id' => $this->id,

View File

@ -121,8 +121,6 @@ class Post extends Model
// dd($fields->type->value);
if($fields->type->value == 'photo'){
$fields->video->hidden = true;
}else{
$fields->featured_images->hidden = true;
}
}

View File

@ -0,0 +1 @@
static-pages: { }