Download the PHP package exceptio/laravel-approval without Composer
On this page you can find all versions of the php package exceptio/laravel-approval. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download exceptio/laravel-approval
More information about exceptio/laravel-approval
Files in exceptio/laravel-approval
Package laravel-approval
Short Description Dynamic Approval Package For Laravel Framework
License MIT
Informations about the package laravel-approval
Dynamic Approval Permission For For Laravel 5.7 or Higher
A Dynamic package for handling model based approval process in Laravel.
- Installation
- Composer
- Service Provider
- Config File
- View File
- Migration File
- Notification File
- Approvable Trait
- Migrations and Seeds
- Usage
- Creating Process
- Blade Extensions
- Middleware
- Config File
- Opening an Issue
- License
Installation
This package is very easy to set up. There are only couple of steps.
Composer
Pull this package in through Composer
Service Provider
-
Laravel 5.5 and up Uses package auto discovery feature, no need to edit the
config/app.php
file. - Laravel 5.4 and below
Add the package to your application service providers in
config/app.php
file.
Config File
Publish the package config file to your application. Run these commands inside your terminal.
php artisan vendor:publish --provider="Exceptio\ApprovalPermission\ApprovalPermissionServiceProvider" --tag="config"
you may set approvalpermission-enable
to false
to disable the feature.
you may set do-migration
to false
in config file to disable the migration.
Note: database must have all the necessary tables and columns if you disable migration.
View Files
Publish the view file to your application. Run these commands inside your terminal.
php artisan vendor:publish --provider="Exceptio\ApprovalPermission\ApprovalPermissionServiceProvider" --tag="views"
Migration File
Publish the package migration file to your application. Run these commands inside your terminal.
php artisan vendor:publish --provider="Exceptio\ApprovalPermission\ApprovalPermissionServiceProvider" --tag="migration"
Notificaiton File
Publish the package notificaiton file to your application. Run these commands inside your terminal.
php artisan vendor:publish --provider="Exceptio\ApprovalPermission\ApprovalPermissionServiceProvider" --tag="notificaiton"
Approvable Trait
- Include
Approvable
trait to a class for approval process. See example below.
Example Approvable
Trait:
Migrations and seeds
This uses the default users table which is in Laravel. You should already have the migration file for the users table available and migrated.
-
Setup the needed tables:
-
For seeder publish
- Seed an initial set of Approval sample data.
And that's it!
Usage
Creating Process
Blade Extensions
The Blade extensions.
Config File
You can change user model name, primary key and other settings in config. Have a look at config file for more information.
Opening an Issue
Before opening an issue there are a couple of considerations:
- A star on this project shows support and is way to say thank you to all the contributors. If you open an issue without a star, your issue may be closed without consideration. Thank you for understanding and the support.
- Read the instructions and make sure all steps were followed correctly.
- Check that the issue is not specific to your development environment setup.
- Provide duplication steps.
- Attempt to look into the issue, and if you have a solution, make a pull request.
- Show that you have made an attempt to look into the issue.
- Check to see if the issue you are reporting is a duplicate of a previous reported issue.
- Following these instructions show me that you have tried.
- If you have a questions send me an email to [email protected]
- Please be considerate that this is an open source project that I provide to the community for FREE when opening an issue.
License
Dynamic Approval Permission For Laravel Project by Exception Solutions is marked with CC0 1.0 Universal