laravel-rest-api maintained by lomkit
Last update
2023/11/29 13:00
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^10.0
- illuminate/http ^10.0
- illuminate/support ^10.0
Last update
2023/11/12 11:22
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^10.0
- illuminate/http ^10.0
- illuminate/support ^10.0
Last update
2023/11/11 12:01
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/11/08 22:15
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/10/25 21:19
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/10/24 08:57
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/10/23 20:33
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/10/22 18:44
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/10/19 22:40
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/10/12 22:22
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/10/09 16:33
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/22 11:23
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/21 22:36
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/19 23:48
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/18 21:40
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/18 21:40
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/16 09:11
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/14 20:08
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/14 08:22
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/10 14:34
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/09/10 13:44
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/31 21:03
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/31 08:09
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/30 22:44
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/30 08:06
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/24 12:18
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/17 17:13
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/13 21:29
License
Require
- php ^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/13 20:19
License
Require
- php ^7.3|^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/13 19:13
License
Require
- php ^7.3|^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/12 14:15
License
Require
- php ^7.3|^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/08/02 14:47
License
Require
- php ^7.3|^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Last update
2023/07/30 21:16
License
Require
- php ^7.3|^8.0
- ext-json *
- illuminate/contracts ^8.37|^9.0|^10.0
- illuminate/http ^8.37|^9.0|^10.0
- illuminate/support ^8.37|^9.0|^10.0
Laravel Rest Api
Laravel Rest Api is an elegant way to expose your app through an API, it takes full advantage of the Laravel ecosystem such as Policies, Controllers, Eloquent, ...
Requirements
PHP 8.2+ and Laravel 11+
Documentation, Installation, and Usage Instructions
See the documentation for detailed installation and usage instructions.
What It Does
You'll find multiple endpoints exposed when using this package such as mutating, searching, showing, deleting, ...
Here is a quick look at what you can do using API search method:
// POST api/posts/search
{
"search": {
"scopes": [
{"name": "withTrashed", "parameters": [true]}
],
"filters": [
{
"field": "id", "operator": ">", "value": 1, "type": "or"
},
{
"nested": [
{"field": "user.posts.id", "operator": "<", "value": 2},
{"field": "user.id", "operator": ">", "value": 3, "type": "or"}
]
}
],
"sorts": [
{"field": "user_id", "direction": "desc"},
{"field": "id", "direction": "asc"}
],
"selects": [
{"field": "id"}
],
"includes": [
{
"relation": "posts",
"filters": [
{"field": "id", "operator": "in", "value": [1, 3]}
],
"limit": 2
},
{
"relation": "user",
"filters": [
{
"field": "languages.pivot.boolean",
"operator": "=",
"value": true
}
]
}
],
"aggregates": [
{
"relation": "stars",
"type": "max",
"field": "rate",
"filters": [
{"field": "approved", "value": true}
]
},
],
"instructions": [
{
"name": "odd-even-id",
"fields": [
{ "name": "type", "value": "odd" }
]
}
],
"gates": ["create", "view"],
"page": 2,
"limit": 10
}
}
Roadmap
- Metrics support
- Refactor the response class
- Alias for includes