Answer the question
In order to leave comments, you need to log in
Pass link via GET request to controller?
Example:
https://steamcommunity.com/linkfilter/?url=https://soundcloud.com
Route::get('linkfilter/{link}', '[email protected]')->name('linkfilter_page');
public function linkfilter($link)
{
$link = (string)trim(Helpers::codeClear($link));
...
}
Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
No message
Answer the question
In order to leave comments, you need to log in
If you are passing a url as a query (the part after the ?) parameter, then you need to make the route look like this
And your url will be available via Request
public function linkfilter(Request $request)
{
$link = (string)trim(Helpers::codeClear($request->url));
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question