-
Hi I have this function, which I am trying to control its request parameters for the documentation. /**
* Search project items
*
* This function is used to search project items
*/
public function search_project_items(Request $request, $project_uuid){
$user_id = Auth::user()->id;
$request->validate([
'search_query' => ['required', 'string'],
'alpha' => ['required', 'numeric'],
/** @ignoreParam */
'group_by_url' => 'boolean',
/** @ignoreParam */
'embedding_client' => 'string',
]); However, the documentation still displays the parameters. Am I doing something wrong? I am running |
Beta Was this translation helpful? Give feedback.
Answered by
bakrianoo
Oct 27, 2024
Replies: 1 comment
-
I found the issue. $_ = $request->input("group_by_url");
To avoid this, I have to use $params = $request->all();
$_ = $params['group_by_url']; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bakrianoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the issue.
I was using this to get the ignored parameter in the function
$request->input
forced the documentation to display the parameter.To avoid this, I have to use