back
pestphp/pest
The
back
function generates a
redirect HTTP response
to the user's previous location:
<?php
return
back
(
$status
=
302
,
$headers
= [],
$fallback
=
'/'
); return
back
();