Download the PHP package wovosoft/laravel-permissions without Composer
On this page you can find all versions of the php package wovosoft/laravel-permissions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wovosoft/laravel-permissions
More information about wovosoft/laravel-permissions
Files in wovosoft/laravel-permissions
Package laravel-permissions
Short Description Roles and Permissions Implementation for https://github.com/spatie/laravel-permission using Laravel and Bootstrap-Vue
License MIT
Homepage https://github.com/wovosoft/laravel-permissions
Informations about the package laravel-permissions
Laravel Role & Permissions Front-End Implementation using spatie/laravel-permission
Package description
The package is a Front-End Implementationf of the spatie/laravel-permission package. The spatie/laravel-permission is an awesome package for managing Roles & Permissionf for Laravel applications out of the box. But currently it doesn't have the front-end to easily deploy in your application.
This package comes to solve this problem. The package implements almost every features provided by spatie/laravel-permission.
Features
- Vue Components for each possible features .
- Components are reusable. So, the default layout can be modified according to the needs of your application.
- Currently the front-end uses Bootstrap-Vue. But you can easily change it's layout.
- The front-end vue components are packaged as an npm package. You can use it as a module for you bundlers eg. Webpack,
- Check the main spatie/laravel-permission for more details.
Installation
Install via composer
Publish Configuration File
-
Publish the configuration file.
-
Publish the Vue Components. The Published components will be copied to
resources/laravel-permissions/permissions
folder. You need to add theMain.vue
component to yourapp.js
-
Publish the Migrations
- Publish the Seeds
Configuration
-
In
App\User.php
model add theHasRoles.php
Trait. -
Now Run
-
Go to
config/laravel-permissions.php
. Add Default Permissions and Roles. -
The package adds the routes automatically prefixed by
backend
, so your other routes should't be prefixed bybackend
. But you can change it inconfig/laravel-permissions.php
config file. To check the registered routes, run in your terminal from project the root, - The gates are automatically registered during boot-up by spatie/laravel-permission
Usage
-
So, according to
config/laravel-permissions.php
(#3) you can perform user abilities as follows: - Check the main spatie/laravel-permission for more details.
Note
Please keep in mind, the default Role and Permission models provided by spatie/laravel-permission are extended in the package. That's why rather than using
Spatie\Permission\Models\Role
for Role andSpatie\Permission\Models\Permission
please useWovosoft\LaravelPermissions\Models\Roles
for Role andWovosoft\LaravelPermissions\Models\Permissions
for Permission respectively.
Example Project
Click here to check the demo project https://github.com/wovosoft/laravel-permissions-example
Security
If you discover any security related issues, please email [email protected] or create issue in the Github Repository.
Credits
This package is bootstrapped with the help of wovosoft/crud.