Skip to content

Commit

Permalink
Merge pull request #169 from santigarcor/KKSzymanowski-patch-1
Browse files Browse the repository at this point in the history
Add a note about config cache clearing to the docs
  • Loading branch information
santigarcor authored Jul 18, 2017
2 parents 1817ec9 + aa59d82 commit 82c850d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/configuration/after_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ Automatic setup (Recommended)
If you want to let laratrust to setup by itself, just run the following command::

php artisan laratrust:setup
.. WARNING::
If Laravel does not recognize this command, the Laratrust service provider hasn't been registered. Check ``providers`` array in ``config/app.php`` and try clearing your configuration cache::

php artisan config:clear

This command will generate the migrations, create the ``Role`` and ``Permission`` models (if you are using the teams feature it will also create a ``Team`` model) and will add the trait to the configured user models.

Expand Down
5 changes: 5 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Installation
4. Run the next command to publish all the configuration files::
php artisan vendor:publish --tag="laratrust"
.. WARNING::
If this command did not publish any files, chances are, the Laratrust service provider hasn't been registered. Try clearing your configuration cache::

php artisan config:clear

5. If you are going to use :doc:`usage/middleware` you also need to add the following to ``routeMiddleware`` array in ``app/Http/Kernel.php``::

Expand Down

0 comments on commit 82c850d

Please sign in to comment.