laravel-sitemap | Laravelium Sitemap generator for Laravel | Sitemap library
kandi X-RAY | laravel-sitemap Summary
kandi X-RAY | laravel-sitemap Summary
Laravelium Sitemap generator for Laravel.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add new item
- Store sitemap .
- Generates the sitemap index
- Register the package .
- Add new item .
- Register the Sitemap class .
- Get use cache
- Get use gzip
- Get max size
- Get use limit size
laravel-sitemap Key Features
laravel-sitemap Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-sitemap
QUESTION
i am trying to install spatie/sitemap package on my laravel package but i keep getting this error i don't know what's the problem :
Your requirements could not be resolved to an installable set of packages.
Problem 1
...ANSWER
Answered 2021-Jul-23 at 17:54spatie/sitemap
requires spatie/crawler
, and this one (even in the latest version) requires v1 of guzzlehttp/psr7
. That's no surprise, as v2 of that package is just three weeks old, and spatie/crawler
hasn't been updated since then.
To get to a solution, just read the error message:
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Composer might help you to resolve the dependency problem, but only if you tell it to do so by using the -W
flag.
If this does not work: you might need to check which other package requires guzzlehttp/psr7
in v2. That is a pretty recent version, and composer why-not guzzlehttp/psr7 1.8.2
might list any package that forbids downgrading this package. If this does list any conflicting packages, you need to check further which one needs a downgrade
QUESTION
I am running two Angular2+ projects and a Laravel API on my server together. The first angular project is a public website for users (SSR enabled), the second angular project is Admin Panel (SSR not enabled), these two projects run on Laravel API. I have a strange problem with sitemap creation.
I am using this library for sitemap creation and also Laravel API is running on Apache Server.
The problem is The sitemap creation process is taking too much time (Apr. 70 seconds) This problem occurred after enabling server-side rendering on my angular project. If I disable SSR, the problem not occurs. While the angular SSR project is running based on Node.js, the sitemap creation process increases Node.js resource usage (CPU up to 85%) and therefore this process takes 1 minute to complete. This is strange because Laravel is running on the Apache server and the admin can create a sitemap, because SSR is not enabled for the admin panel, it shouldn't be related to the Node.js server.
Here is my SSR enabled angular project (when idle):
This ss taken when executing following code:
$sitemap = SitemapGenerator::create($website->url)->getSitemap();
As you can see Node process is consuming all CPU resources.
How did I understand sitemap generation is getting slow the performance?
Sitemap generation code here:
...ANSWER
Answered 2021-May-07 at 07:17From what I understand, that lib works by dynamically crawling the website. I don't know how many pages you've got, but it could take a while since the crawler will cause angular universal to render all the pages to retrieve the links.
If you disable SSR, I doubt that the sitemap will work as expected, since the crawler will not be able to retrieve page content (as without SSR, the rendered page only contains js/css links).
A solution could be to generate the sitemap yourself: add static links first, then use your api generate the lsit of dynamic pages (product/xxx
, product/yyy
)
QUESTION
I have created sitemap using this library https://github.com/spatie/laravel-sitemap but i don't want changefreq info.how to disable.can't find in repository
...ANSWER
Answered 2021-Apr-17 at 12:10Publish resource views
Then edit file: https://github1s.com/spatie/laravel-sitemap/blob/HEAD/resources/views/url.blade.php
QUESTION
I'm trying to update my Laravel version from 6 -> 8 by following this guide https://laravel.com/docs/8.x/upgrade
I'm not sure if I should update to Laravel 7 first, then to 8, never the less, I face the same composer problem when trying to update to 7.
composer update output:
...ANSWER
Answered 2020-Oct-08 at 12:38At least one of the packages you're using doesn't support Laravel 7 or 8. The composer error message tells you which one.
According to the error message, "silber/bouncer": "v1.0.0-rc.6"
only supports up to Laravel 6. Looking at the composer.json for that package shows that support for Laravel 7 wasn't added until v1.0.0-rc.7
, and support for Laravel 8 wasn't added until v1.0.0-rc.9
.
You'll need to update your silber/bouncer
dependency and then try again. If you run into another error, you'll need to look at the message to determine which package doesn't meet the requirements, and then figure out what version of that package you need to get to in order to meet the requirements.
Since Laravel 8 is fairly new, you may run into some packages that haven't been updated to support it yet (such as vimeo/laravel
). In that case, you'll either need to wait until those packages support it, or fork the package and attempt to add the support yourself.
QUESTION
I am using spatie to generate sitemap.xml. It is working properly as it is expected. But as per some requirement I would like to not include any image url in sitemap.xml.
This is my code -
...ANSWER
Answered 2020-Jun-22 at 23:50Please follow this part of document - spatie. This is not specifically omit images but if there is any specific format in your url for images link - http://www.example.com/uploads
then try to get segment(1)
and compare so this part of documentation will work.
In your case as an example -
QUESTION
I have this GenerateSitemap.php file where I can configure the crawler, but I don't understand how I should make the crawler skip some specific URLs for example (https://example.com/noindex-url). I have read this but I can't get my head around it. https://github.com/spatie/laravel-sitemap
...ANSWER
Answered 2020-May-06 at 13:48if ((string)$url->path() === '/noindex-url') {
return;
}
QUESTION
I try to move my laravel 5.8 to 7x branch. I try to move 6 branch firstly. But I got errors with maddhatter/laravel-fullcalendar, as I got error with
...ANSWER
Answered 2020-Apr-15 at 07:40the maddhatter/laravel-fullcalendar
dependency need the version 5
of illuminate/support
.
So you can't update laravel
with this dependency. Moreover, it seems that this project was not updated since 3 years
But a fork exist here.And it works with laravel
for 5,6 and 7 https://github.com/nelkasovic/laravel-full-calendar/blob/master/composer.json#L15
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-sitemap
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page