f9webltd / laravel-meta Goto Github PK
View Code? Open in Web Editor NEW:boom: Render meta tags within your Laravel application
License: MIT License
:boom: Render meta tags within your Laravel application
License: MIT License
See
laravel-meta/src/TitleGuessor.php
Line 77 in d215816
The path
is not always present, need to handle thisa to avoid an Undefined index: path
error. Appears to only apply for weird incoming requests to the application.
Double quotes cause issues such as:
<meta name="description" content="We sell 20" industrial nails">
At the very least htmlentities
should be ran on such tags so they become:
<meta name="description" content="We sell 20" industrial nails">
Without accounting for the meta description can be truncated ๐ฆ
Scruitinzer fails after changes to composer.json - see https://scrutinizer-ci.com/g/f9webltd/laravel-meta/inspections/0bb078c0-b82e-4a1b-8894-eb678c1fec13
"PHP Analyzer: Determining Dependencies - Analyzing composer.json/composer.lock files to determine dependencies of the root package"
All tests pass but this fails after the commit 2d52ea7#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34
Could do with some help?
Migrate away from Scrutinizer and use GitHub actions to run tests on multiple versions of PHP and Laravel.
It appears Laravel has its own Conditionable
trait, see https://github.com/laravel/framework/blob/8.x/src/Illuminate/Support/Traits/Conditionable.php
It would be nice to use this as opposed to the internal implementation at https://github.com/f9webltd/laravel-meta/blob/master/src/Meta.php#L124-L134
Very open to a PR on this.
i.e. user-reports
should result in User Reports
as oppossed to User-reports
Hello I have default value
'defaults' => [
'charset' => 'utf-8',
'robots' => 'index, follow',
...
When I use meta()->noIndex()
It doesn't rewrite default value. When I remove default value, it works.
What could it be?
Instead of hardcoding ' - ' as a title seperator it would be nice to have that configurable.
Support PHP ^8.0
Hi,
I'm trying to overwrite default meta but it doesn't work.
f9web-laravel-meta.php
'defaults' => [
'property:og:data' => 'ZZZ',
];
MyController
meta()->set('property:og:data', 'YYY');
// OR
meta()->forget('property:og:data')
->forget('og:data')
->set('property:og:data', 'YYY');
Header
<meta property="og:data" content="ZZZ">
is there a way to override it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.