69 lines
1.7 KiB
PHP
69 lines
1.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
|
|
/**
|
|
* Single route names
|
|
*
|
|
* Ex:
|
|
*
|
|
* 'singlePages' => [
|
|
* 'homepage',
|
|
* ],
|
|
*/
|
|
'singlePages' => [
|
|
'front.homepage',
|
|
'front.mentions-legales',
|
|
'front.privacy-policy'
|
|
],
|
|
|
|
/**
|
|
* Model namespaces with filters
|
|
*
|
|
* Ex: (modelFilters & relationFilters are not necessaries)
|
|
* 'cruds' => [
|
|
* [
|
|
* 'model' => 'App\Models\Product',
|
|
* 'modelFilters' => [
|
|
* ['published', '=', true]
|
|
* ],
|
|
* 'relationFilters' => [
|
|
* 'range' => fn(Builder $q) => $q->where('status', true),
|
|
* ],
|
|
* 'allowNullRelations' => ['range'],
|
|
* ],
|
|
* [
|
|
* 'model' => 'App\Models\Article',
|
|
* ]
|
|
* ],
|
|
*/
|
|
'cruds' => [],
|
|
|
|
/**
|
|
* 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 * * *',
|
|
|
|
/**
|
|
* 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"]))
|
|
*/
|
|
'supported_locales' => array_keys(config('laravellocalization.supportedLocales', ['fr' => "Fr"]))
|
|
];
|