antonioribeiro / health

Laravel Health Panel
BSD 3-Clause "New" or "Revised" License
1.95k stars 197 forks source link

Class {{ config('auth.providers.users.model') }} does not exist #80

Closed jmauerhan closed 5 years ago

jmauerhan commented 6 years ago

Upon a fresh install, I followed the directions, and the Database check fails with this error. There's no documentation on what this class should be.

mohrajab commented 6 years ago

The same issue here, @jmauerhan do you find the solution?

mohrajab commented 6 years ago

Aha, I think it's just a label. I change the value of YAML file of Database from {{ config('auth.providers.users.model') }} to App\Models\User

And it's run successfully

poor-bob commented 6 years ago

I use this package in a Docker image, so we need to be able to replicate the fix in our build process every time programmatically.

Here's what I run in my Dockerfile RUN sed -i '6s/.*/ - App\\User/g' /var/www/vendor/pragmarx/health/src/config/resources/Database.yml