I m working on laravel login and everything works fine in localhost but when i moved to live server its throwing page expired error even though i have added csrf token
My form is like this
<form method="POST" action="{{ route('login') }}" role="form">
{{ csrf_field() }}
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus>
@if ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
<input id="password" type="password" class="form-control" name="password" required>
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
<button type="submit" class="btn btn-green">Sign in</button>
</form>
I have tried clearing server cache with php artisan cache:clear and restarting my apache 2 server
I have also tried to clear session in config/framework/session folder and also in config.framework/views
Even though it still persist
Can anyone please help me ??? Thank you
.envfile ?php artisan key:generateand check what happens then.