post settings video
This commit is contained in:
parent
a488efe6b3
commit
6866f94346
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
static-pages: { }
|
||||
Loading…
Reference in New Issue