I'm trying to upload images to a project, after uploading 2 or 3 images I get the error
The page has expired due to inactivity. Please refresh and try again.
It takes me out of the session and when I try to log in, I get the same error again, in version 5.4 it worked fine, was there a change?
I see this error in the browser console: Failed to load resource: the server responded to a status of 419 (unknown status)
My create function is:
public function create(CreateMessageRequest $request){
$image = $request->file('image');
$user = $request->user();
$message = Message::create([
'image' => $image->store('messages','public'),
'content' => $request->input('message'),
'user_id' => $user->id,
]);
The form has:
<div class="row">
<form class="" action="/message/create" method="post" enctype="multipart/form-data">
{{csrf_field()}}
<div class="form-group">
<input class="form-control" type="text" name="message" value="" placeholder="Que Estas Pensando?">
</div>
<input type="file" class="form-control-file" name="image">
</form>