mirror of
https://github.com/wearepixel/laravel-comments.git
synced 2026-11-14 14:02:04 +00:00
17 lines
276 B
PHP
17 lines
276 B
PHP
<?php
|
|
|
|
namespace BeyondCode\Comments\Traits;
|
|
|
|
trait CanComment
|
|
{
|
|
/**
|
|
* Check if a comment for a specific model needs to be approved.
|
|
*
|
|
* @param mixed $model
|
|
*/
|
|
public function needsCommentApproval($model): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|