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

Return the Route object for method chaining #114

Merged
merged 1 commit into from
Dec 7, 2021
Merged

Return the Route object for method chaining #114

merged 1 commit into from
Dec 7, 2021

Conversation

erikwittek
Copy link
Contributor

In Version 2 the macro returned the Route object, for example you could add a middleware:

Route::webhooks('example')->middleware('auth.webhook');

This breaks with the update to v3. Simply returning the Object again solves this issue.

In Version 2 the macro returned the Route object, for example you could add a middleware:
```php
Route::webhooks('example')->middleware('auth.webhook');
```
This breaks with the update to v3. Simply returning the Object again solves this issue.
@freekmurze freekmurze merged commit d71a8e8 into spatie:main Dec 7, 2021
@freekmurze
Copy link
Member

Thanks!

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