butschster / LaravelMetaTags

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

Added ability to add visibility condition for tag entities. #29

Closed butschster closed 4 years ago

butschster commented 4 years ago

issue #11

Example

Tag::meta([
    'name' => 'description',
    'content' => 'Another cool description'
])->visibleWhen(function () {
    return Request::ip() === '127.0.0.1';
});