PHPackages                             exceptio/laravel-approval - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. exceptio/laravel-approval

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

exceptio/laravel-approval
=========================

Dynamic Approval Package For Laravel Framework

v1.0.76(3mo ago)2519MITPHP

Since Mar 22Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/azcpavel/laravel-approval)[ Packagist](https://packagist.org/packages/exceptio/laravel-approval)[ RSS](/packages/exceptio-laravel-approval/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (78)Used By (0)

Dynamic Approval Permission For For Laravel 5.7 or Higher
=========================================================

[](#dynamic-approval-permission-for-for-laravel-57-or-higher)

A Dynamic package for handling model based approval process in Laravel.

- [Installation](#installation)
    - [Composer](#composer)
    - [Service Provider](#service-provider)
    - [Config File](#config-file)
    - [View File](#view-file)
    - [Migration File](#migration-file)
    - [Notification File](#notification-file)
    - [Approvable Trait](#approvable-trait)
    - [Migrations and Seeds](#migrations-and-seeds)
- [Usage](#usage)
    - [Creating Process](#creating-process)
    - [Blade Extensions](#blade-extensions)
    - [Middleware](#middleware)
- [Config File](#config-file)
- [Opening an Issue](#opening-an-issue)
- [License](#license)

---

Installation
------------

[](#installation)

This package is very easy to set up. There are only couple of steps.

### Composer

[](#composer)

Pull this package in through Composer

```
composer require exceptio/laravel-approval

```

### Service Provider

[](#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.

```
'providers' => [

    ...

    /**
     * Third Party Service Providers...
     */
    Exceptio\ApprovalPermission\ApprovalPermissionServiceProvider::class,

],
```

### Config 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

[](#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

[](#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

[](#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

[](#approvable-trait)

1. Include `Approvable` trait to a class for approval process. See example below.

Example `Approvable` Trait:

```
