Skip to content

Commit

Permalink
add soft-delete to comment model
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed Aug 6, 2022
1 parent bcfc0ec commit 314f2ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/Actions/Comment.php
Expand Up @@ -3,11 +3,12 @@
namespace Pharaonic\Laravel\Users\Models\Actions;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Pharaonic\Laravel\Users\Traits\Actions\Comment\isCommentable;

class Comment extends Model
{
use isCommentable;
use isCommentable, SoftDeletes;

/**
* The attributes that are mass assignable.
Expand Down
Expand Up @@ -25,6 +25,7 @@ public function up()
$table->mediumText('comment');

$table->timestamps();
$table->softDeletes();
});
}

Expand Down

0 comments on commit 314f2ee

Please sign in to comment.