Laravel menghemat hubungan dengan parameter
$user->roles()->attach($roleId, ['expires' => $expires]);
Charming Cockroach
$user->roles()->attach($roleId, ['expires' => $expires]);