mirror of
https://github.com/wearepixel/laravel-comments.git
synced 2026-11-14 14:02:04 +00:00
Update the README.md with the new features documentation.
This commit is contained in:
@@ -2,22 +2,20 @@
|
||||
|
||||
namespace BeyondCode\Comments\Tests\Models;
|
||||
|
||||
use Illuminate\Foundation\Auth\User;
|
||||
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
|
||||
* @return bool
|
||||
*
|
||||
* @param mixed $model
|
||||
*/
|
||||
public function needsCommentApproval($model): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace BeyondCode\Comments\Tests\Models;
|
||||
|
||||
use BeyondCode\Comments\Traits\HasComments;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Post extends Model
|
||||
|
||||
Reference in New Issue
Block a user