You can encrypt your url parameter and decrypt it in your controller. You can try the following:
In your view: suppose your parameter has an identifier or more parameter that you can encrypt.
<?php
$parameter =[
'id' =>1,
];
$parameter= Crypt::encrypt($parameter);
?>
<a href="{{url('/url/',$parameter)}}" target="_blank">a link</a>
Your route will be:
Route::get('/url/{parameter}', 'YourController@methodName');
In your controller, you can decrypt your parameter:
public function methodName($id){
$data = Crypt::decrypt($id);
}
You must be the Crypt namespace at the top of the controller
use Illuminate\Support\Facades\Crypt;
Note. You can encrypt url parameter with Crypt::encrypt($parameter)and decrypt withCrypt::decrypt($parameter)
source
share