saleem-hadad / larecipe

✏️ Write and ship beautiful documentation with your Laravel applications using MarkDown
https://larecipe.saleem.dev/
MIT License
2.41k stars 265 forks source link

Gate returns error when using Laravel Bouncer #75

Closed scottybo closed 5 years ago

scottybo commented 5 years ago

Describe the bug We use Laravel Bouncer to manage permissions for our Laravel app. When attempting to add the LaRecipe gate to /app/Providers/AuthServiceProvider.php we get the following error:

Too few arguments to function BinaryTorch\LaRecipe\DocumentationRepository::__construct(), 0 passed in /var/www/html/holly-spark/vendor/silber/bouncer/src/CachedClipboard.php on line 170 and exactly 1 expected

To Reproduce Steps to reproduce the behavior:

  1. Install Laravel Bouncer
  2. Install LaRecipe
  3. Add a Gate
  4. See error

Expected behavior An error shouldn't be thrown.

saleem-hadad commented 5 years ago

is this error still exist? @scottybo

asivaneswaran commented 5 years ago

I am this issue. Anyone can help me?