Changing the HTTP Status Code | Laravel Application Helper Function: back
To change the status code of the response simply supply an argument for the $status parameter: 1 <?php 2 3 // Redirect back with a "301: Moved Permanently" status code. 4 return back ( 301 ) ; 5 6 // Redirect back with a "307: Temporary Redirect"...