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

About $url->make() #40

Closed
mbamber1986 opened this issue May 25, 2021 · 2 comments
Closed

About $url->make() #40

mbamber1986 opened this issue May 25, 2021 · 2 comments

Comments

@mbamber1986
Copy link

Hi again i was just wondering can i use $url->make("address.page",['usernarmae'=>$username]) go to a post variable or is this only set up to do get variables if so do you have anyway in your script that can pull / http Post requests

@miladrahimi
Copy link
Owner

The Url::make() is used to generate URLs from route names to avoid hard-coding URLs in code layer.
For example:

$postUrl = $url->make('blog.post', ['id' => $postId]);

instead of:

$postUrl = '/blog/post/' . $postId;

@mbamber1986
Copy link
Author

Ok thasnks im going to assume though once passed it will turn into a get request

i wanted to know if it would stay as a post request for submission

its not an issue

thanks for your hard work its much appreciated

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

No branches or pull requests

2 participants