😆Laravel 9 Generate and Read Sitemap XML File Tutorial (ok)
https://www.positronx.io/laravel-generate-and-read-sitemap-xml-file-tutorial/
Ví dụ 1: loại thứ nhất là xml
composer require roumen/sitemap
// Link: https://github.com/LaraPalCom/laravel-sitemap'providers' => [
...
Laravelium\Sitemap\SitemapServiceProvider::class
...
]<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\PostController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('post-detail/{id}',[PostController::class,'detail'])->name('post.detail');
Ví dụ 2: loại thứ loại thứ nhất là xml

PreviousSource code dùng để nghiên cứu khá đầy đủ tính năng testcom-blog-full (ok)NextLaravel 8 Cron Job Task Scheduling Tutorial Full (ok)
Last updated