mirror of
https://github.com/wearepixel/laravel-comments.git
synced 2026-11-14 22:12:35 +00:00
22 lines
439 B
PHP
22 lines
439 B
PHP
<?php
|
|
|
|
namespace BeyondCode\Comments\Tests\Models;
|
|
|
|
use BeyondCode\Comments\Contracts\Commentator;
|
|
use Illuminate\Foundation\Auth\User;
|
|
|
|
class ApprovedUser extends User implements Commentator
|
|
{
|
|
protected $table = 'users';
|
|
|
|
/**
|
|
* Check if a comment for a specific model needs to be approved.
|
|
*
|
|
* @param mixed $model
|
|
*/
|
|
public function needsCommentApproval($model): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|