iamalexchip / clawcrane
A laravel package for using GraphQL like filtering from eloquent models
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 1
Type:package
This package is auto-updated.
Last update: 2024-09-11 01:27:46 UTC
README
Clawcrane is a laravel package for GraphQl like data fetching on your eloquent models.
Usage example
use Iamalexchip\ClawCrane; $users = User::get(); $clawcrane = new ClawCrane($users); $template = '{"username": "", "firstname": "", "email": ""}'; $clawcrane->get($template); /* [ "data" => [ "users" => [ [ "username" => "zerochip", "firstname" => "Alex" ], [ "username" => "johndoe", "firstname" => "John", "email" => "johndoe24@mail.com" ] ] ], "errors" => [ "App\\User: attribute [email] access denied" ] ] */