This commit is contained in:
Ludovic CANDELLIER
2021-08-21 19:48:21 +02:00
parent 9a0601d473
commit 81fbec892c
24 changed files with 423 additions and 65 deletions

View File

@@ -2,15 +2,22 @@
namespace App\Models\Core;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Venturecraft\Revisionable\RevisionableTrait;
use Wildside\Userstamps\Userstamps;
use App\Repositories\Core\DateTime;
use BeyondCode\Comments\Comment as parentComment;
class Comment extends parentComment
class Comment extends Model
{
use SoftDeletes, Userstamps;
protected $guarded = [];
}
public function user()
{
return $this->belongsTo(\App\Models\Core\Auth\User::class);
}
public function getUpdatedAtAttribute($value)
{
return DateTime::DateToLocale($value);
}
}