Download the PHP package mlab817/lighthouse-graphql-permission without Composer
On this page you can find all versions of the php package mlab817/lighthouse-graphql-permission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mlab817/lighthouse-graphql-permission
More information about mlab817/lighthouse-graphql-permission
Files in mlab817/lighthouse-graphql-permission
Download mlab817/lighthouse-graphql-permission
More information about mlab817/lighthouse-graphql-permission
Files in mlab817/lighthouse-graphql-permission
Vendor mlab817
Package lighthouse-graphql-permission
Short Description Add GraphQL types and mutations for spatie/laravel-permission
License MIT
Package lighthouse-graphql-permission
Short Description Add GraphQL types and mutations for spatie/laravel-permission
License MIT
Please rate this library. Is it a good library?
Informations about the package lighthouse-graphql-permission
Lighthouse GraphQL Permission
A composer package for adding GraphQL Types to support spatie/laravel-permission.
Installation
To install the package, run the following command in your project directory:
The command will also install the dependencies of the package: spatie/laravel-permission
and nuwave/lighthouse
.
Set up
- Proceed with setting up spatie/laravel-permission as usual. Add the
Spatie Permission Service Provider
in theconfig/app.php
file. Also add theHasRoles
trait in your User model. Do not forget to publish and run the migration. If you need to modify the config of the package, you may also do so by publishing the package's config file. - Add the
\Mlab817\LighthouseGraphQLPermission\Providers\LighthouseGraphQLPermissionServiceProvider::class
in theconfig/app.php
file. This will add the service provider of the package to your app. Then, publish theconfig
andschema
files of the package by runningphp artisan vendor:publish
and selecting the relevant options. - You can now use the package.
Schema
All versions of lighthouse-graphql-permission with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3|^8.0
spatie/laravel-permission Version ^3.18
nuwave/lighthouse Version ^4.18
spatie/laravel-permission Version ^3.18
nuwave/lighthouse Version ^4.18
The package mlab817/lighthouse-graphql-permission contains the following files
Loading the files please wait ....