You can install the package via composer, but you need to ensure you can install it via GitHub.
In composer.json
add a new property for repositories
:
{
// ...
"require": {
"php": "^8.2",
"filament/filament": "^3.2",
"laravel/framework": "^11.0",
// ...
"eightygrit/filament-sanctum": "^2.0"
},
// ...
"repositories": [
{
"type": "vcs",
"url": "https://github.com/eightygrit/filament-sanctum.git"
}
]
}
Save the composer.json
file. Then run composer update
.
Publish the vendor config file by running:
php artisan vendor:publish --tag=filament-sanctum-config
Update the config file as you see fit:
return [
'abilities' => [
'users:read' => 'Read User',
'users:create' => 'Create User',
'users:update' => 'Update User',
'users:delete' => 'Delete User',
'blog:read' => 'Read Blog',
'blog:create' => 'Create Blog',
'blog:update' => 'Update Blog',
'blog:delete' => 'Delete Blog',
],
'columns' => 4,
'navigation_menu' => true,
'user_menu' => false,
'label' => 'Sanctum',
'slug' => 'sanctum',
];
php artisan vendor:publish --tag=filament-sanctum-translations
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected]
instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.