Download the PHP package sebacarrasco93/laravel-simple-sitemap without Composer
On this page you can find all versions of the php package sebacarrasco93/laravel-simple-sitemap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebacarrasco93/laravel-simple-sitemap
More information about sebacarrasco93/laravel-simple-sitemap
Files in sebacarrasco93/laravel-simple-sitemap
Package laravel-simple-sitemap
Short Description Laravel Simple Sitemap
License MIT
Homepage https://github.com/sebacarrasco93/laravel-simple-sitemap
Informations about the package laravel-simple-sitemap
Laravel Simple Sitemap
A very simple package: Create sitemaps "on the fly"
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Create a sitemap for Eloquent Collections
Let's assume that you want to make a sitemap of all the categories, you can do that in only 3 steps!
Now, you can use it
Can I short the syntax? Of course!
Advanced usage
A sitemap for only active categories? Sure!
A sitemap for active, in desc order and paginate? It's Eloquent and Laravel!
Easy Peasy!
Add to a specific routes
You can add to a custom routes in only 2 steps:
Adding the Middlewares
Using the Middleware:
You can add all your get routes. If you add another such as post, patch, put, etc. it will be ignored.
Advanced
If you don't wanna to add each one, you can add into your all php
Also, if you want to exclude a specific route from a group, you can add sitemap:exclude middleware
Now, you can see all your routes
Creating a index
Optionally, you can create a index sitemap with your sitemap collections
Custom frequency and priority
If you want to customize each frequency or priority, you can add a migration
You can also specify a custom frequency for a specific model
Specify custom frequency to a specific model
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Seba Carrasco Poblete
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-simple-sitemap with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0