icelander
1 year ago
415
9
Laravel

Call to a member function notify() on null

Posted 1 year ago by icelander

I get this error message. this is my code

$id= $bank['data']['metadata']['buyer_user_id'];
 $users = user::find($id);

  auth()->user()->notify(new MergedMechanic($users));

i just want to trigger a notification but when d page loads i get this error message

Please sign in or create an account to participate in this conversation.