butschster / LaravelMetaTags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project
MIT License
547 stars 51 forks source link

access tag value #18

Closed tokomeno closed 4 years ago

tokomeno commented 4 years ago

I need to access meta tag value but when I get a tag and then trying to get value property is private, is there any way to do that?

My current code is: Meta::getTag("title")->title

butschster commented 4 years ago

Hi! Try this

dd(Meta::getTitle()->getAttributes());
olimortimer commented 3 years ago

Has this changed, as when I use your example @butschster it gives me the following error;

Call to undefined method Butschster\Head\MetaTags\Entities\Title::getAttributes()