The message is about the foreign key user_id. It seems that auth()->user()->id is null or empty. Check if your user is logged before call the Auth method. If(auth()->check())
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us