Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdalmolin committed Nov 30, 2024
1 parent e714ce3 commit bcaa296
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Models/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,18 @@ public static function boot(): void
});
}

/**
* @return MorphTo
*/
public function commentable(): MorphTo
{
return $this->morphTo();
}

/**
* @return BelongsTo
*/
public function commenter(): BelongsTo
{
return $this->belongsTo(config('auth.providers.users.model'), 'commenter_id');
}

/**
* @param Closure|callable $callback
* @param Closure|callable $callback
*/
public static function whenCreating($callback): void
{
Expand Down

0 comments on commit bcaa296

Please sign in to comment.