laravel-lighthouse

Authorisation in Laravel Lighthouse

筅森魡賤 提交于 2020-12-13 06:19:40
问题 In my graphql API I have to authorize requests to fields by two different factors. Whether the user is authorized to access the data or whether the data belongs to the user. For example, the user should be able to see its own user data and all users with admin rights should be able to see this data too. I want to protect the fields, so users with different permisions can access some fields of a type, but don't have access all fields. I tried to do this with @can , but I didn't find any way to

In Router.php line 366: Argument 1 passed to Illuminate\Routing\Router::group() must be of the type array,

懵懂的女人 提交于 2020-03-03 04:52:05
问题 I have update Laravel from v5.7 to v5.8 and now my application doesn't run. I updated it because of this issue: composer require rebing/graphql-laravel fails I solved the packages incompatibility but now Laravel crashes: $ php artisan serve In Router.php line 366: Argument 1 passed to Illuminate\Routing\Router::group() must be of the type array, string given, called in /var/www/masvino/Server-bak/vendor/laravel/framework/src/Illuminate/Support/Facades /Facade.php on line 239 I suspect that

SO composer require rebing/graphql-laravel fails

限于喜欢 提交于 2019-12-25 01:43:31
问题 I have the following problem trying to install rebing/graphql-laravel via composer : $ composer require rebing/graphql-laravel Using version ^2.1 for rebing/graphql-laravel ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for rebing/graphql-laravel ^2.1 -> satisfiable by rebing/graphql-laravel[2.1.0, 2