Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/#33-Handle-meta-SEO' into f…
Browse files Browse the repository at this point in the history
…eat/#33-Handle-meta-SEO

# Conflicts:
#	src/Http/Controllers/MetaBoxController.php
  • Loading branch information
tanhongit committed Jan 13, 2025
2 parents c668de0 + 3f6c5db commit ff6c82d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Controllers/MetaBoxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class MetaBoxController
{
protected MetaBoxService $metaBoxService;

protected SlugService $slugService;

public function __construct(MetaBoxService $metaBoxService, SlugService $slugService)
Expand Down
1 change: 1 addition & 0 deletions src/Services/MetaBoxService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class MetaBoxService
protected function getSEOMetaBoxByModel(Model $model, string $lang = AppConstant::DEFAULT_LOCALE): ?Model
{
$metaKey = $lang === 'vi' ? 'seo_meta_vi' : 'seo_meta';

return MetaBox::getMeta($model, $metaKey);
}

Expand Down

0 comments on commit ff6c82d

Please sign in to comment.