morphTo(); } public function createdBy() { return $this->belongsTo(User::class, 'createdby'); } // protected static function newFactory(): ActivityLogFactory // { // // return ActivityLogFactory::new(); // } }