Initial commit

This commit is contained in:
Marcel Pociot
2018-09-03 13:23:13 +02:00
commit 5253dcdf29
23 changed files with 881 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace BeyondCode\Comments\Tests\Models;
use Illuminate\Foundation\Auth\User;
use BeyondCode\Comments\Contracts\Commentator;
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
*/
public function needsCommentApproval($model): bool
{
return false;
}
}