芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Models/NotificationSetting.php
belongsTo(NotificationType::class); } public static function getSettings($conditions = []) { $conditions = array_merge($conditions, ['nt.status' => 'Active']); $query = self::select('notification_settings.*', 'nt.name', 'nt.alias') ->leftJoin('notification_types as nt', 'nt.id', '=', 'notification_settings.notification_type_id'); if (!isActive('Investment') && module('Investment')) { $type = \App\Models\NotificationType::where('name', 'Investment')->first(['id']); $query->where('notification_settings.notification_type_id', '!=', $type->id); } $notificationSettings = $query->where($conditions) ->get(); return $notificationSettings; } }