Laravel Sprawdź, czy polec
if (basename($_SERVER['HTTP_REFERER']) == $_SERVER['SCRIPT_NAME'])
Energetic Echidna
if (basename($_SERVER['HTTP_REFERER']) == $_SERVER['SCRIPT_NAME'])