Merhaba,
Activity log icin su paketi kullaniyorum.
https://github.com/spatie/laravel-activitylog
Sorunum sudur. subject_type ile sorguladigim ve json sutunu olan properties->attributes->project_id kisimlari ile cektigim veriler geliyor. Lakin query2 sorgusuyla cekmeye calistigim veriler gelmiyor. Veritabaninda bu veriler mevcut. Biryerde hata mi yapiyorum? Gozumden kacan birsey varsa belirtirseniz sevinirim.
$test = \App\ActivityLog::where(function($query) use ($id, $projectModel){
$query->where('subject_type', '=', $projectModel)
->where('subject_id', '=', $id);
})
->orWhere('properties->attributes->project_id', '=', $id)
->orWhere(function($query2) use ($id, $module){
$query2->where('properties->attributes->module', '=', $module)
->where('properties->attributes->content_id', '=', $id);
})->get();
return $test;