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

Don't use 'int' as url params variables #1160

Open
asbiin opened this issue Jul 4, 2021 · 2 comments
Open

Don't use 'int' as url params variables #1160

asbiin opened this issue Jul 4, 2021 · 2 comments

Comments

@asbiin
Copy link
Contributor

asbiin commented Jul 4, 2021

In almost all urls with parameters, when passing the id of an object in the url, like localhost/1/xxx, the parameter to represent the id is declared as an int.
The leads to errors/execptions, when the url is not targeted with an integer.

@djaiss
Copy link
Member

djaiss commented Jul 5, 2021

@asbiin How should it be declared then?

@asbiin
Copy link
Contributor Author

asbiin commented Jul 14, 2021

@djaiss I don't know yet, I'll have to pass in Laravel-guru mode ...

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