for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Modules\Blog\Entities;
use Illuminate\Database\Eloquent\Model;
use Modules\Blog\Events\PostContentIsRendering;
class PostTranslation extends Model
{
public $timestamps = false;
protected $fillable = ['title', 'slug', 'content'];
protected $table = 'blog__post_translations';
public function getContentAttribute($content)
event($event = new PostContentIsRendering($content));
return $event->getContent();
}