🚧 Commence les 1er filtres avec la pagination

This commit is contained in:
2020-07-23 17:21:26 +02:00
parent 49248fb16b
commit a8d9309103
6 changed files with 132 additions and 3 deletions

32
config/query-builder.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
/**
* @see https://github.com/spatie/laravel-query-builder
*/
return [
/*
* By default the package will use the `include`, `filter`, `sort`
* and `fields` query parameters as described in the readme.
*
* You can customize these query string parameters here.
*/
'parameters' => [
'include' => 'include',
'filter' => 'filter',
'sort' => 'sort',
'fields' => 'fields',
'append' => 'append',
],
/*
* Related model counts are included using the relationship name suffixed with this string.
* For example: GET /users?include=postsCount
*/
'count_suffix' => 'Count',
];