https://github.com/handmadeweb/statamic-laravel-packages
Adds "quick access links" and permissions to Statamic, for popular Laravel (Horizon, Nova, Telescope) packages.
https://github.com/handmadeweb/statamic-laravel-packages
Last synced: 11 months ago
JSON representation
Adds "quick access links" and permissions to Statamic, for popular Laravel (Horizon, Nova, Telescope) packages.
- Host: GitHub
- URL: https://github.com/handmadeweb/statamic-laravel-packages
- Owner: HandmadeWeb
- License: mit
- Created: 2021-08-02T22:42:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T11:54:22.000Z (almost 2 years ago)
- Last Synced: 2024-11-18T09:39:55.466Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](LICENSE.md)
Adds "quick access links" and permissions to Statamic, for popular Laravel (Horizon, Nova, Telescope) packages.
## Requirements
* Statamic 3.1 or higher
## Installation
You can install the package via composer:
```shell
composer require handmadeweb/statamic-laravel-packages
```
Then you can assign permissions via Statamic which will be usable in the form of `can` / `cant`, `access laravel telescope`, `access laravel horizon` or `access laravel nova`
Then just update the service provider for your chosen package, for example with Telescope we might use the following.
`\App\Providers\TelescopeServiceProvider`
```php
/**
* Register the Telescope gate.
*
* This gate determines who can access Telescope in non-local environments.
*
* @return void
*/
protected function gate()
{
Gate::define('viewTelescope', function ($user) {
return $user->can('access laravel telescope');
});
}
```
And now you will be able to manage access via Statamic.
## Usage
### Permissions
You'll be able to add permissions for each of the installed `Laravel Packages` in the Statamic control panel.

### Control Panel
Any package/links that the admin/user has permission to access (and is installed) will appear on the sidebar.

## Changelog
Please see [CHANGELOG](https://statamic.com/addons/handmadeweb/statamic-laravel-packages/release-notes) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/handmadeweb/statamic-laravel-packages/blob/main/CONTRIBUTING.md) for details.
## Credits
- [Handmade Web & Design](https://github.com/handmadeweb)
- [Michael Rook](https://github.com/michaelr0)
- [All Contributors](https://github.com/handmadeweb/statamic-laravel-packages/graphs/contributors)
## License
The MIT License (MIT). Please see [License File](https://github.com/handmadeweb/statamic-laravel-packages/blob/main/LICENSE) for more information.