@armen_98 This is a known problem that is fixed by reading the documentation. There is more storage devoted to this topic than what is used at the library of congress.
Aug 25, 2016
15
Level 1
CSRF not working properly
Hey all! My csrf check is not working as it should. Here what I have: routes.php
Route::get('test', 'test@show');
Route::post('test', 'test@show');
test.php (controller)
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
class test extends Controller
{
public function show(Request $request)
{
return view('test');
}
}
test.blade.php
<form action="{{ url('/test') }}" method="POST">
{{ csrf_field() }}
<input type="submit">
</form>
When I start hitting Submit button after several succesed submits I get TokenMismatchException. Every time. Any Ideas how to fix this?
Please or to participate in this conversation.