for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Modules\Blog\Entities;
use Dimsav\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
use Translatable;
protected $fillable = ['name', 'slug'];
public $translatedAttributes = ['name', 'slug'];
protected $table = 'blog__tags';
public function posts()
return $this->belongsToMany('Modules\Blog\Entities\Post', 'blog__post_tag');
}