-
Hello community, i like this package! i try to setup my model with the public function toSitemapTag(): Url | string | array
{
return route('job_details', $this);
} this is working fine ;-) Route::controller(JobController::class)->group(function () {
Route::get('/jobs', 'index');
Route::get('/job/{job}', 'show')->name('job_details');
}); and in general i currently generate the sitemap onrequest - Route::get(
'/sitemap.xml',
function () {
return Sitemap::create()
->add('/jobs')
->add(Job::all());
}
); is this a good idea? please let me know what you think / any tips or ideas :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
found... and created #499 to add this to the readme. |
Beta Was this translation helpful? Give feedback.
found...
and created #499 to add this to the readme.