This commit is contained in:
Cüneyt Şentürk
2021-06-27 23:42:55 +03:00
parent 9c6e776a0b
commit 15645ee7a4
5 changed files with 8 additions and 4 deletions

View File

@ -75,7 +75,7 @@ abstract class Model extends Eloquent implements Ownable
*/
public function owner()
{
return $this->belongsTo('App\Models\Auth\User', 'id', 'created_by');
return $this->belongsTo('App\Models\Auth\User', 'created_by', 'id');
}
/**

View File

@ -73,6 +73,10 @@ class Header
if ($new_apps) {
foreach ($new_apps as $new_app) {
if (setting('notifications.' . user()->id . '.' . $new_app->alias)) {
continue;
}
$notifications++;
}
}