If auth user receiveEmail ?
if(Auth::user()->recieveEmail{
Auth::user()-notify($event);
}
You could also do the check in the event itself and pass user I’d to the event along with the somedata
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community