User
====

Next, use the ``LaratrustUserTrait`` trait in your existing user models. For example:

.. code-block:: php

    <?php

    use Laratrust\Traits\LaratrustUserTrait;

    class User extends Model
    {
       use LaratrustUserTrait; // add this trait to your user model

       ...
    }

This will enable the relation with ``Role`` and ``Permission``, and add the following methods ``roles()``, ``hasRole($name)``, ``hasPermission($permission)``, ``isAbleTo($permission)``, ``can($permission)``, and ``ability($roles, $permissions, $options)`` within your ``User`` model.

Do not forget to dump composer autoload::

    composer dump-autoload

.. IMPORTANT::
    At this point you are ready to go
User
====

Next, use the ``LaratrustUserTrait`` trait in your existing user models. For example:

.. code-block:: php

    <?php

    use Laratrust\Traits\LaratrustUserTrait;

    class User extends Model
    {
       use LaratrustUserTrait; // add this trait to your user model

       ...
    }

This will enable the relation with ``Role`` and ``Permission``, and add the following methods ``roles()``, ``hasRole($name)``, ``hasPermission($permission)``, ``isAbleTo($permission)``, ``can($permission)``, ``ability($roles, $permissions, $options)``, and ``teams()`` within your ``User`` model.

Do not forget to dump composer autoload::

    composer dump-autoload

.. IMPORTANT::
    At this point you are ready to go

Update doc for teams function
Update doc for teams function