diego-drese/valiria is a Laravel package for sanctum auth acl.
It currently has 0 GitHub stars and 2 downloads on Packagist.
Install it with composer require diego-drese/valiria.
Discover more Laravel packages by diego-drese
or browse all Laravel packages to compare alternatives.
Last updated
Valíria is a Laravel package to authentication and authorization package.
The middleware val.acl check if auth user is authorized to access the route and he is authorized when has permission with
the same name of the route within any role he has
Only the greatest smiths can reforge swords from existing Valirian steel, and the secret of creating such an alloy was apparently lost with Valíria, making these remaining weapons highly prized and extremely rare. Valirian steel blades in Westeros are precious relics of noble houses, each with its own name and history.
composer require diego-drese/valiriaphp artisan vendor:publish --force --tag auth-seedsval.acl on routes with that you wish check permissionsphp artisan db:seed --class=PermissionsTableSeeder to populate permissions tableuse Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful;
'api' => [
EnsureFrontendRequestsAreStateful::class,
'throttle:60,1',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
use Laravel\Sanctum\HasApiTokens;
use Valiria\Traits\ValiriaUser;
class User extends Authenticatable
{
use HasApiTokens, Notifiable, ValiriaUser;
}
The Valiria package is open-sourced software licensed under the MIT license.