A SEO package made for maximum customization and flexibility.
The full package documentation can be found on romanzipp.github.io/Laravel-SEO
./vendor/bin/phpunit
The MIT License (MIT). Please see License File for more information.
SEO package made for maximum customization and flexibility
Home Page: https://romanzipp.github.io/Laravel-SEO/
License: MIT License
A SEO package made for maximum customization and flexibility.
The full package documentation can be found on romanzipp.github.io/Laravel-SEO
./vendor/bin/phpunit
The MIT License (MIT). Please see License File for more information.
Hello @romanzipp,
I'm trying to get the package working with jigsaw. I've updated this starter and wanted to add Laravel SEO to it. I wonder if it's possible, below are steps to reproduce the issue:
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/spekulatius/jigsaw-clean-blog
composer install && yarn
composer require romanzipp/laravel-seo
master.blade.php
: @php $seo = \romanzipp\Seo\Facades\Seo::make(); @endphp
yarn dev
I'm not sure if it's possible to make the package work with jigsaw, it might be desirable tho.
Thanks,
Peter
To Reproduce
seo()->twitter('player', 'http://example.com/something?video=123&clip=456')
Expected behavior
<meta name="twitter:player" content="http://example.com/something?video=123&clip=456" />
Actual behavior
<meta name="twitter:player" content="http://example.com/something?video=123&clip=456" />
Hello @romanzipp
Your SEO package looks great, well thought out! Thank you for maintaining it!
I'm consider to use it in a package I'm building. I was wondering if there is a simple way to pass a nested array structure to process into header tags. I'm thinking of something like this:
$data = [
'title' => 'abc',
'description' => 'bla bla...',
'twitter' => [
'card' => 'summary',
'creator' => '@romanzipp'
]
];
// Rendering and returning the result
seo()->render($data);
Is this possible?
Cheers,
Peter
Hey @romanzipp
I was wondering what you think about these for further shorthand setters:
canonical
for the canonical URLimage
for the meta and social sharing imageskeywords
for the keywords meta-tag and potentially the <meta property="article:tag" content="keyword" />
Generally, do you think it makes sense to have the meta-tags for article:
similar to og
/twitter
?
Happy to help out!
Cheers,
Peter
Is possible to set an option to render HTML5 tags instead XHTML?
Example:
<meta name="description" content="Laravel" />
to
<meta name="description" content="Laravel">
Describe the solution you'd like
Add a feature to read asset urls from the mix-manifest.json
file generated by laravel-mix and append <link rel="prefetch">
or <link rel="preload">
elements.
Hi,
would it be support for php8?
On composer update i get the following:
"romanzipp/laravel-seo[2.1.0, ..., 2.1.5] require php ^7.1 -> your php version (8.0.0) does not satisfy that requirement"
Hello @romanzipp
I was wondering how one would set async
or defer
on Script. As far as I've seen it isn't possible at the moment. Is this correct? With addAttribute
being protected I can't see a way to set it. Do I miss the obvious way here?
Cheers,
Peter
Describe the bug
Not sure if this qualifies as a bug.
Some tags are rendered twice while others are overridden.
To Reproduce
Steps to reproduce the behavior:
AddSeoDefaults
middlewareseo()->title(config('app.name'));
to AddSeoDefaults
as fallback titleseo()->title('Something else');
seo()->meta('robots', 'index, follow')
to AddSeoDefaults
as fallback tagseo()->meta('robots', 'noindex, nofollow')
<meta name="robots" content="index, follow">
AND <meta name="robots" content="noindex, nofollow">
are rendered.Expected behavior
All tags should only be rendered once and be rendered as they are called the last in the stack.
Describe the bug
Struct attribute value '0' won't get rendered
To Reproduce
seo()->addMany([
Meta::make()->attr('http-equiv', 'Cache-Control')->content('no-cache, no-store, must-revalidate'),
Meta::make()->attr('http-equiv', 'Pragma')->content('no-cache'),
Meta::make()->attr('http-equiv', 'Expires')->content('0'),
]);
<meta http-equiv="Expires" content />
Expected behavior
<meta http-equiv="Expires" content="0" />
Describe the bug
Hello @romanzipp
I've used the shorthand for the canonical link and it added a meta
-tag instead of the expected link
-tag. I googled and couldn't find any information on a meta tag - only the typical <link ... >
. Could this be a mistake? If so I'm happy to look into and provide a fix.
Cheers,
Peter
Describe the bug
When using the plugin with Laravel Octane tags are duplicated. First off the title tag gets duplicated then anything added to the AddSeoDefaults middleware. I followed your tutorial(https://romanzipp.github.io/Laravel-SEO/example-app.html) on setting everything up including Providers and Middleware .
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The tags should not be duplicated.
Screenshots
https://i.postimg.cc/WbZhkY6j/Screenshot-2022-09-21-at-13-12-26.png
Additional context
I think this happens because Octane keeps requests in memory so somehow the plugin should reset the added metadata.
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.