I tried using the same code that I have for a platform that does not use laravel but it gives me an error: Undefined index: HTTP_REFERER
$referrer = $_SERVER['HTTP_REFERER'];
if($referrer === 'http://example.example.info/prueba/')
{
//continue
}
I tried using the same code that I have for a platform that does not use laravel but it gives me an error: Undefined index: HTTP_REFERER
$referrer = $_SERVER['HTTP_REFERER'];
if($referrer === 'http://example.example.info/prueba/')
{
//continue
}
You can get HTTP_REFERER in laravel with Request::server()
;
Request::server('HTTP_REFERER')
Refer : https://laravel.com/api/5.0/Illuminate/Http/Request.html#method_server