ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/fms-worksuite/app/Models/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/fms-worksuite/app/Models/Notification.php |
<?php namespace App\Models; /** * App\Models\Notification * * @property int $id * @property string $type * @property string $notifiable_type * @property int $notifiable_id * @property string $data * @property string|null $read_at * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read mixed $icon * @method static \Illuminate\Database\Eloquent\Builder|Notification newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification query() * @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereData($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereNotifiableId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereNotifiableType($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereReadAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereType($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUpdatedAt($value) * @mixin \Eloquent */ class Notification extends BaseModel { public static function deleteNotification($notifyData, $id) { Notification::whereIn('type', $notifyData) ->whereNull('read_at') ->where('data', 'like', '{"id":' . $id . ',%') ->delete(); } }