PHPackages                             oliuz/teamroles - 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. oliuz/teamroles

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

oliuz/teamroles
===============

Team Roles expansion on oliuz/teamwork

3.0.3(6y ago)1403MITHTML

Since Nov 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/oliuz/TeamRoles)[ Packagist](https://packagist.org/packages/oliuz/teamroles)[ Docs](https://github.com/oliuz/TeamRoles)[ RSS](/packages/oliuz-teamroles/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Team Roles for oliuz/teamwork
=============================

[](#team-roles-for-oliuzteamwork)

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

[](#installation)

This package is very easy to setup and install.

### Composer

[](#composer)

Pull this package in through Composer (file `composer.json`).

```
{
    "require": {
        "oliuz/teamroles": "^3.0.0"
    }
}
```

The run `composer install` or `composer update`. Alternatively you can run `composer require oliuz/teamroles` to install this package.

### Service Provider

[](#service-provider)

Add the package to your application service providers in `config/app.php` file.

```
'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
    Illuminate\Auth\AuthServiceProvider::class,
    ...

    /**
     * Third Party Service Providers...
     */
    Tehcodedninja\Teamroles\TeamRoleProvider::class,
],
```

### Config File And Migrations

[](#config-file-and-migrations)

Publish the package config file and migrations to your application. Run these commands inside your terminal.

```
php artisan vendor:publish --provider="Tehcodedninja\Teamroles\TeamRoleProvider" --tag=config
php artisan vendor:publish --provider="Tehcodedninja\Teamroles\TeamRoleProvider" --tag=migrations

```

And also run migrations.

```
php artisan migrate

```

### Models

[](#models)

#### User

[](#user)

Add the `UsedByUsers` trait to your existing User model:

```
