javascript - How would I send form data correctly through this post request on the browser?

one text

Solution:

Well, ErrorException: Trying to get property 'id' of non-object in file isn't very helpful, could you see the exact line it's talking about? If it means $id = $request->user()->id;, then it seems like id is not part of user(). Maybe try dumping $request->user().

If you are sending user_id and email, then you can just do $request->user_id and $request->email. Are you sure there is an active session?

Source