Setup meta data for your pages.
resources/js/Components/AppHead.vue
This component is already included with the layouts.
PageLayout
and meta data will be automatically rendered.
title
in meta
prop as in example above.pageTitle
(without title
in meta
) and this value will be used.%page_title% | %app_name%
. You can update the format via Admin panel or by updating the APP_TITLE_FORMAT
in .env
file.
Placeholder %page_title%
is the meta title you set, and %app_name%
is placeholder for your application name.
meta
prop for public pages.Head
component.
%page_title% | %app_name%
where page_title is the title your set, and app_name is the name of your application. You can update the format by updating the APP_TITLE_FORMAT
in .env
file or via admin panel under admin/meta
.
You can also override the format per page by passing the titleFormat
prop.modules/Blog/app/Http/Controllers/PublicBlogController.php
for real example using pagination.