for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xetaravel\Models;
use Xetaravel\Models\Presenters\DiscussLogPresenter;
class DiscussLog extends Model
{
use DiscussLogPresenter;
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'data' => 'array'
];
* Get the user that owns the log.
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
public function user()
return $this->belongsTo(User::class);
}
* Get the loggable relation.
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
public function loggable()
return $this->morphTo();