takshak/adash-metas

meta tags extension for adash admin panel

1.1.3 2024-03-11 04:00 UTC

This package is auto-updated.

Last update: 2024-05-11 04:20:17 UTC


README

An extension to takshaktiwari/adash for adding meta tags and content to pages, targeting the url. You can also set tags for whole site (globally) at one place. This is helpful for SEO Managers.

Implementation

Install the package with composer with given command and run the migrations php artisan migrate

composer require takshak/adash-metas

Add component to admin sidebar, inside ul element for getting the links in admin sidebar

<x-ametas-ametas:admin-sidebar-links />

Run the migrations

php artisan migrate

Components

Admin sidebar menu

<x-ametas-ametas:admin-sidebar-links />: Use this component to show the menu item in admin sidebar

Displaying meta tags on website

<x-ametas-ametas:metatags />: Add this component in the head tag of your website to display meta tags there. You can pass url argument to tell the component about some specific url otherwise it will capture the current url. You can also pass array to tags in tags argument to tell the component some custom meta tags, like: :tags="['title' => 'Some page title', 'keywords' => 'and so on']"