|PushNotificationLog newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|PushNotificationLog newQuery() * @method static \Illuminate\Database\Eloquent\Builder|PushNotificationLog query() * @mixin \Eloquent */ class PushNotificationLog extends Model { protected $guarded = ['id']; protected $casts = [ 'sent_at' => 'datetime', 'target' => PushNotificationTargetEnum::class, ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } }