title: Laravel 7 Auth not working on hosted site
body: <p>So I am trying to deploy a Laravel site to bluehost however after successful login which should redirect to '/home' and stop. It instead tries to redirect to '/home' then redirects to '/login'. the same code running on localhost with the same database works fine. Other database operations work fine.</p>
  <p>Basically the default auth middleware seems to broken somehow.</p>
  <p>I used laravel's built in auth to make make the authentication.
  here is the live site:</p>
  <p>LoginController.php</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Auth;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\AuthenticatesUsers;
  
  class LoginController extends Controller
  {
  
      use AuthenticatesUsers;
  
      /**
       * Where to redirect users after login.
       *
       * @var string
       */
      protected $redirectTo = '/home';
  
      /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('guest')-&gt;except('logout');
      }
  }
  </code></pre>
  <p>web.php</p>
  <pre><code>&lt;?php
  
  use Illuminate\Support\Facades\Route;
  use Illuminate\Support\Facades\Auth;
  
  Route::get('/', 'WelcomeController@index')-&gt;name('welcome');
  
  Auth::routes();
  // Home
  Route::get('/home', 'HomeController@index')-&gt;name('home');
  
  //Listings
  Route::get('/listings/search', 'ListingController@search')-&gt;name('search-listings');
  
  Route::get('/listings/delete/{listing}', 'ListingController@destroy')-&gt;name('listing-delete');
  
  Route::resource('listings', 'ListingController');
  
  
  Route::group(['prefix' =&gt; 'messages'], function () {
    Route::get('/', ['as' =&gt; 'messages', 'uses' =&gt; 'MessageController@index']);
    Route::get('create', ['as' =&gt; 'messages.create', 'uses' =&gt; 'MessageController@create']);
    Route::post('/', ['as' =&gt; 'messages.store', 'uses' =&gt; 'MessageController@store']);
    Route::get('{id}', ['as' =&gt; 'messages.show', 'uses' =&gt; 'MessageController@show']);
    Route::put('/', ['as' =&gt; 'messages.update', 'uses' =&gt; 'MessageController@update']);
    Route::delete('/', ['as' =&gt; 'messages.action', 'uses' =&gt; 'MessageController@action']);
  });
  </code></pre>