Skip to content

Commit

Permalink
Update Comment.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Feb 17, 2022
1 parent 8adc9da commit 2417bd2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/MicroweberPackages/Comment/Models/Comment.php
Expand Up @@ -5,10 +5,12 @@
use EloquentFilter\Filterable;
use Illuminate\Database\Eloquent\Model;
use MicroweberPackages\Content\Models\ModelFilters\ContentFilter;
use MicroweberPackages\Core\Models\HasSearchableTrait;

class Comment extends Model
{
use Filterable;
use HasSearchableTrait;

public $table = 'comments';

Expand All @@ -21,6 +23,13 @@ class Comment extends Model
'comment_body',
];

protected $searchable = [
'comment_name',
'comment_email',
'comment_website',
'comment_body',
];

public function modelFilter()
{
return $this->provideFilter(ContentFilter::class);
Expand Down

0 comments on commit 2417bd2

Please sign in to comment.