samedi 10 février 2018

CSRF token not working in laravel

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="" role="form">
                    
                    <input id="email" type="email" class="form-control" name="email" value="" required autofocus>
                    @if ($errors->has('email'))
                        <span class="help-block">
                                        <strong></strong>
                                    </span>
                    @endif

                    <input id="password" type="password" class="form-control" name="password" required>

                    @if ($errors->has('password'))
                        <span class="help-block">
                                        <strong></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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire