dev-master
9999999-devRailt authorization extension for Laravel Framework
MIT
The Requires
Wallogit.com
2017 © Pedro Peláez
Railt authorization extension for Laravel Framework
Your application should use the Laravel Provider, (*1)
composer require serafim/railt-authorizationconfig/railt.php: ...
'extensions' => [
\Serafim\RailtAuthorization\AuthorizationExtension::class,
]
The field that contains the directive @auth is only available to an authenticated user., (*2)
type Example {
field: Result! @auth
}
The field that contains the directive @guest is only available to a guest (non-authenticated user)., (*3)
type Example {
field: Result! @guest
}
The field that contains the directive @can(role: String!):
1. Is only available to an authenticated user.
2. Should pass the authorization gate defined in role argument., (*4)
type Example {
field: Result! @can(role: "some")
}
Railt authorization extension for Laravel Framework
MIT