. */ namespace Poniverse\Ponyfm\Models; use Illuminate\Database\Eloquent\Model; /** * Poniverse\Ponyfm\Models\Role * * @property integer $id * @property string $name * @property-read \Illuminate\Database\Eloquent\Collection|\Poniverse\Ponyfm\Models\User[] $users * @method static \Illuminate\Database\Query\Builder|\Poniverse\Ponyfm\Models\Role whereId($value) * @method static \Illuminate\Database\Query\Builder|\Poniverse\Ponyfm\Models\Role whereName($value) * @mixin \Eloquent */ class Role extends Model { protected $table = 'roles'; public $timestamps = false; public function users() { return $this->belongsToMany(User::class, 'role_user'); } }