78 lines
1.8 KiB
PHP
78 lines
1.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
|
|
/**
|
|
* Single route names
|
|
*
|
|
* Ex:
|
|
*
|
|
* 'singlePages' => [
|
|
* 'homepage',
|
|
* ],
|
|
*/
|
|
'singlePages' => [
|
|
'fo.homepage',
|
|
'fo.teaser',
|
|
'fo.end',
|
|
'fo.participate',
|
|
'fo.view-winning-participations',
|
|
'fo.discounts.print',
|
|
'fo.produits-porteurs',
|
|
'fo.faq',
|
|
'fo.reglement',
|
|
'fo.charte',
|
|
'fo.legals',
|
|
],
|
|
|
|
/**
|
|
* 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' => ['fr' => 'Fr'],
|
|
];
|