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

Add Route::inertia() IDE helper #413

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Add Route::inertia() IDE helper #413

merged 1 commit into from
Jan 17, 2023

Conversation

ycs77
Copy link
Contributor

@ycs77 ycs77 commented Jun 5, 2022

Add Route::inertia() IDE helper for Router macro, IDE helper screenshot:

@ycs77
Copy link
Contributor Author

ycs77 commented Jun 5, 2022

Router macro source:

protected function registerRouterMacro(): void
{
Router::macro('inertia', function ($uri, $component, $props = []) {
return $this->match(['GET', 'HEAD'], $uri, '\\'.Controller::class)
->defaults('component', $component)
->defaults('props', $props);
});
}

@ycs77
Copy link
Contributor Author

ycs77 commented Jan 17, 2023

Could you please merge this PR?

@reinink reinink merged commit 45033ed into inertiajs:master Jan 17, 2023
@reinink
Copy link
Member

reinink commented Jan 17, 2023

@ycs77 Done 😊

@ycs77 ycs77 deleted the patch-2 branch January 17, 2023 13:03
This was referenced Oct 13, 2024
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