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 Category extends Model
{
use Translatable;
public $translatedAttributes = ['name', 'slug'];
protected $fillable = ['name', 'slug'];
protected $table = 'blog__categories';
public function posts()
return $this->belongsToMany('Post');
}