Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix applications with custom user models first install #301

Merged

Conversation

antonkomarev
Copy link
Contributor

@antonkomarev antonkomarev commented Jun 16, 2018

Fixes #300

This PR removes hardcoded User model value from config file, otherwise there is issues on first install and you are not able to publish configuration file.

Illuminate\Foundation\ComposerScripts::postAutoloadDump
php artisan package:discover

In MessengerServiceProvider.php line 102:

Class 'App\User' not found

By default package will use auth.providers.users.model value to resolve User model, what covers most of the use cases.

@cmgmyr cmgmyr merged commit f1274d2 into cmgmyr:master Jun 16, 2018
@cmgmyr
Copy link
Owner

cmgmyr commented Jun 16, 2018

Thanks!

@antonkomarev antonkomarev deleted the fix/applications-with-custom-user-models branch June 16, 2018 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem installing when User model is not App\User
2 participants