Skip to content

Commit

Permalink
to laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustorze committed Nov 24, 2024
1 parent 1c473b2 commit 22b7059
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor/
.idea
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A simple management filters for Laravel, use into REST and GraphQL
* Extend your Filter class from from `Mustorze\MustAFilter\Contracts\Filter` Abstract one

* This is a example filter for a `user` model
```
```php
class UserFilter extends Mustorze\MustAFilter\Contracts\Filter
{
/**
Expand Down Expand Up @@ -56,7 +56,7 @@ class UserFilter extends Mustorze\MustAFilter\Contracts\Filter

## GraphQL
This is a default query in GraphQL
```
```php
class UsersQuery extends Query
{
/**
Expand Down Expand Up @@ -132,7 +132,7 @@ If your followed all the steps well, you can easily test your query passing the
In REST we usually make a query with some arguments we needs to use and we return the results of this query for the requesters

Example:
```
```php
public function fetchAllUsers()
{
return User::where('status', 1) // a default query settings
Expand All @@ -141,7 +141,7 @@ public function fetchAllUsers()
```
With the Filter, you need to add the Filter scope to the constructor. the Filter Scope automatically detects the arguments
in the request and apply in the query
```
```php
public function fetchAllUsers()
{
return User::where('status', 1) // a default query settings
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"require": {
"php": "^8.0",
"webonyx/graphql-php": "^0.13",
"laravel/framework": "^10.0"
"laravel/framework": "^11.0"
},
"license": "MIT",
"authors": [
Expand Down

0 comments on commit 22b7059

Please sign in to comment.