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

[5.8] docs(eloquent observers): method order #5158

Merged
merged 1 commit into from
Apr 26, 2019
Merged

[5.8] docs(eloquent observers): method order #5158

merged 1 commit into from
Apr 26, 2019

Conversation

Larsklopstra
Copy link
Contributor

I've been debugging my app for an hour trying to figure out why my observer isn't working, the problem was that I placed the User::observe(UserObserver::class); in the register method instead of the boot method, in the docs the register method in placed below the boot method which causes confusion because it doesn't follow the Laravel generated order.

I've been debugging my app for an hour trying to figure out why my observer isn't working, the problem was that I placed the `User::observe(UserObserver::class);` in the `register` method  instead of the `boot` method, in the docs the `register` method in placed below the `boot` method which causes confusion because it doesn't follow the Laravel generated order.
@driesvints driesvints changed the title docs(eloquent observers): method order [5.8] docs(eloquent observers): method order Apr 26, 2019
@taylorotwell taylorotwell merged commit e66ee92 into laravel:5.8 Apr 26, 2019
m777z pushed a commit to m777z/laravel-docs that referenced this pull request Jun 8, 2019
I've been debugging my app for an hour trying to figure out why my observer isn't working, the problem was that I placed the `User::observe(UserObserver::class);` in the `register` method  instead of the `boot` method, in the docs the `register` method in placed below the `boot` method which causes confusion because it doesn't follow the Laravel generated order.
m777z added a commit to m777z/laravel-docs that referenced this pull request Jun 8, 2019
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.

2 participants