app/Http/Controllers/FantasyAdminController.php
/**
     * Send User Notification
     * @param NotificationsRequest $request
     */
Send User Notification
@param NotificationsRequest $request
Send User Notification @param NotificationsRequest $request
public function userViewNotification(NotificationsRequest $request)
    {
        ($request->notification_user == 'all')
            ? Notification::send(User::all(), new UsersViewNotification($request->notification_message))
            : User::where('email', $request->notification_user)->firstOrFail()->notify(new UsersViewNotification($request->notification_message));
    }
public function userViewNotification ( NotificationsRequest $ request ) { ( $ request -> notification_user == 'all' ) ? Notification :: send ( User :: all ( ) , new UsersViewNotification ( $ request -> notification_message ) ) : User :: where ( 'email' , $ request -> notification_user ) -> firstOrFail ( ) -> notify ( new UsersViewNotification ( $ request -> notification_message ) ) ; }
Send User Notification
 @param NotificationsRequest $request
Send User Notification @param NotificationsRequest $request