Metode lampiran latavel

$user->roles()->attach($roleId, ['expires' => $expires]);
Charming Cockroach