laravel-resource-index maintained by feldoe
Description
Simple service to build api response for resource index
Author
Last update
2026/11/13 14:59
(dev-master)
License
Downloads
1 618
Tags
Last update
2026/11/13 14:59
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/11/13 14:59
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/04/13 10:16
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/04/13 10:12
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/03/24 10:10
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/03/22 09:34
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/03/03 10:57
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0
Last update
2025/04/01 16:58
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0
Last update
2025/02/24 08:43
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0|^12.0
- illuminate/http ^9.0|^10.0|^11.0|^12.0
- illuminate/support ^9.0|^10.0|^11.0|^12.0
Last update
2025/01/28 12:24
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0
- illuminate/http ^9.0|^10.0|^11.0
- illuminate/support ^9.0|^10.0|^11.0
Last update
2024/12/09 16:45
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0
- illuminate/http ^9.0|^10.0|^11.0
- illuminate/support ^9.0|^10.0|^11.0
Last update
2024/12/04 17:06
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0
- illuminate/http ^9.0|^10.0|^11.0
- illuminate/support ^9.0|^10.0|^11.0
Last update
2024/03/12 15:53
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0|^11.0
- illuminate/http ^9.0|^10.0|^11.0
- illuminate/support ^9.0|^10.0|^11.0
Last update
2024/02/12 14:42
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2024/01/25 11:08
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2024/01/08 10:57
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2024/01/02 08:58
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2024/01/02 08:50
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/12/18 09:21
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/12/16 10:23
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/12/16 10:18
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/12/14 15:27
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/09/18 12:52
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/07/27 15:10
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/07/27 15:05
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/06/13 17:37
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/06/05 10:31
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/06/02 17:29
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/05/30 19:13
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/05/30 12:21
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/05/30 11:58
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/05/30 11:52
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/05/29 15:59
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/05/29 15:34
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/02/15 10:25
License
Require
- php ^8.1
- illuminate/database ^9.0|^10.0
- illuminate/http ^9.0|^10.0
- illuminate/support ^9.0|^10.0
Last update
2023/01/19 14:01
License
Require
- php ^8.1
- illuminate/database ^9.0
- illuminate/http ^9.0
- illuminate/support ^9.0
Last update
2023/01/11 18:25
License
Require
- php ^8.1
- illuminate/database ^9.0
- illuminate/http ^9.0
- illuminate/support ^9.0
Last update
2022/12/22 17:03
License
Require
- php ^8.1
- illuminate/database ^9.0
- illuminate/http ^9.0
- illuminate/support ^9.0
Last update
2022/12/22 11:42
License
Require
- php ^8.1
- illuminate/database ^9.0
- illuminate/http ^9.0
- illuminate/support ^9.0
Last update
2022/12/21 15:18
License
Require
- php ^8.1
- illuminate/database ^9.0
- illuminate/http ^9.0
- illuminate/support ^9.0
Last update
2022/12/21 15:12
License
Require
- php ^8.1
- illuminate/database ^9.0
- illuminate/http ^9.0
- illuminate/support ^9.0
Last update
2022/12/21 14:33
License
Require
- php ^8.1
- illuminate/database ^9.0
- illuminate/http ^9.0
- illuminate/support ^9.0
Simple service to build api response for resource index
About laravel resource index
Example
use Atx\ResourceIndex\Contracts\ResourceIndex;
use Illuminate\Routing\Controller;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class Index extends Controller
{
public function __invoke(Request $request, ResourceIndex $service): JsonResponse
{
return $service->from(MyModel::class, MyModelResource::class)
->processRequest(
$request,
// Filterable
[
'filterable_column',
],
// Searchable
[
'searchable_column',
],
// Sortable
[
'sortable_column',
]
)
->response();
}
}
Front usage example
fetch('http://localhost/api/v1/endpoint?filter[filter1][]=test&filter[filter2]=true&sort=-created_at&search=test')
License
Laravel resource index is open-sourced software licensed under the MIT license.