for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
/**
* @mixin IdeHelperComment
*/
class Comment extends Model
{
use CrudTrait;
Backpack\CRUD\app\Models\Traits\CrudTrait
App\Models\Comment
$fakeColumns
$identifiableAttribute
$Type
use LogsActivity;
protected $guarded = ['id'];
protected static bool $logUnguarded = true;
public function getDateAttribute()
return Carbon::parse($this->updated_at, 'UTC')->toFormattedDateString();
}
public function commentable()
return $this->morphTo();
public function author()
return $this->belongsTo(User::class);