I want to create new user with id_ward, but when I post submit form it returns error 419(unknown status)
please help me
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle">Thêm user</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="./admin/users/add_user" method="post" id="form-add-user">
<input type="hidden" name="_token" value="{{csrf_token() }}" />
<div class="form-group row">
<div class="col-md-6">
<label for="add_user_area">Phường/xã:</label>
<select id="add_user_area" class="form-control" name="id_ward">
@foreach ($areas as $area)
<option value={{$area->id}}>{{$area->name}}</option>
@endforeach
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" onclick="document.getElementById('form-add-user').submit()"
class="btn btn-primary">Thêm
</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Đóng</button>
</div>
</div>
And this is my controller
function postAddUser(Request $request)
{
$user = new User;
$user->id_ward = $request->id_ward;
$user->save();
return redirect('admin/users/list_user');
}