EDIT: i get this error even for public/auth/login after pushing the Login button
Hi i'm simply trying to output a Session::flash() but I get this error message:
TokenMismatchException in VerifyCsrfToken.php line 46
Here is the code:
public function update($id, Requests\EditPostRequest $request)
{
$post = Post::findOrFail($id);
$post->update($request->all());
return redirect(route('news.edit', $id))->with('success', 'Operation successful !');
}
And this is in my view:
@if(Session::has('success'))
<div class="alert alert-success">
{{ Session::get('success') }}
</div>
@endif
I really need to fix that :/