comments
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user