2023-08-10 14:48:45 +02:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-14 17:32:12 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2023-08-10 14:48:45 +02:00
|
|
|
return [
|
|
|
|
|
|
|
|
|
|
/**
|
2024-09-25 16:28:32 +02:00
|
|
|
* Single route names
|
2023-08-11 11:20:50 +02:00
|
|
|
*
|
2024-09-25 16:28:32 +02:00
|
|
|
* Ex:
|
2023-08-11 11:20:50 +02:00
|
|
|
*
|
2026-10-15 11:50:09 +02:00
|
|
|
* 'single_pages' => [
|
2024-09-25 16:28:32 +02:00
|
|
|
* 'homepage',
|
|
|
|
|
* ],
|
2023-08-10 14:48:45 +02:00
|
|
|
*/
|
2026-10-14 17:32:12 +02:00
|
|
|
'single_pages' => [],
|
2023-08-10 14:48:45 +02:00
|
|
|
|
|
|
|
|
/**
|
2024-09-25 16:28:32 +02:00
|
|
|
* Model namespaces with filters
|
2023-08-10 14:48:45 +02:00
|
|
|
*
|
2026-10-15 12:04:03 +02:00
|
|
|
* Ex: (model_filters & relation_filters are not necessaries)
|
2024-09-25 16:28:32 +02:00
|
|
|
* 'cruds' => [
|
|
|
|
|
* [
|
2025-07-18 15:30:41 +02:00
|
|
|
* 'model' => 'App\Models\Product',
|
2026-10-15 12:04:03 +02:00
|
|
|
* 'model_filters' => [
|
2024-09-25 16:28:32 +02:00
|
|
|
* ['published', '=', true]
|
2025-07-18 15:30:41 +02:00
|
|
|
* ],
|
2026-10-15 12:04:03 +02:00
|
|
|
* 'relation_filters' => [
|
2025-07-18 15:30:41 +02:00
|
|
|
* 'range' => fn(Builder $q) => $q->where('status', true),
|
|
|
|
|
* ],
|
2026-10-15 12:04:03 +02:00
|
|
|
* 'allow_null_relation' => ['range'],
|
2024-09-25 16:28:32 +02:00
|
|
|
* ],
|
|
|
|
|
* [
|
|
|
|
|
* 'model' => 'App\Models\Article',
|
|
|
|
|
* ]
|
|
|
|
|
* ],
|
2023-08-10 14:48:45 +02:00
|
|
|
*/
|
2024-09-25 16:28:32 +02:00
|
|
|
'cruds' => [],
|
2023-08-10 14:48:45 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Enable or disable schedule for the job
|
|
|
|
|
* If set to true the sitemap generator will be run
|
|
|
|
|
* using the 'cron' instruction
|
|
|
|
|
*/
|
|
|
|
|
'schedule' => true,
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* If you want to set specific
|
|
|
|
|
* instruction for when to schedule job
|
|
|
|
|
* you can set this with a cron instruction
|
|
|
|
|
* You can generate one using https://crontab.guru/
|
|
|
|
|
*
|
|
|
|
|
* schedule must be set to true
|
|
|
|
|
*
|
|
|
|
|
* Default is every day at 15:45
|
|
|
|
|
*/
|
|
|
|
|
'cron' => '45 15 * * *',
|
2026-03-31 11:09:48 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* All supported locales in the project.
|
|
|
|
|
* When used with mcamara/laravel-localization, you can get the values from the package config :
|
|
|
|
|
* 'supported_locales' => array_keys(config('laravellocalization.supportedLocales', ['fr' => "Fr"]))
|
|
|
|
|
*/
|
2026-10-14 17:32:12 +02:00
|
|
|
'supported_locales' => ['fr'],
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The location where the sitemap file should be generated.
|
|
|
|
|
*/
|
2026-10-15 14:42:20 +02:00
|
|
|
'output' => [
|
|
|
|
|
'storage_disk' => 'public',
|
|
|
|
|
'path' => 'sitemap.xml',
|
|
|
|
|
],
|
2026-10-14 17:32:12 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The route localizer strategy to use.
|
|
|
|
|
* Supported: 'default', 'mcamara', or a custom class implementing RouteLocalizerInterface.
|
|
|
|
|
*/
|
|
|
|
|
'localizer' => 'default',
|
2023-08-10 14:48:45 +02:00
|
|
|
];
|