Answers for "laravel 8 http redirect"

PHP
1

redirect http to https htaccess laravel 8

<IfModule mod_rewrite.c>
    RewriteEngine On        
  RewriteCond %{HTTPS} !=on    
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteRule ^(.*)$ public/ [L]
</IfModule>
Posted by: Guest on April-15-2021
2

laravel response redirect

#Method 1 with route name
return redirect()->route('login');

#Method 2 back with input
return back()->withInput();

#Method 2 using a url
return redirect('/home/dashboard');
Posted by: Guest on August-25-2021

Code answers related to "laravel 8 http redirect"

Browse Popular Code Answers by Language