Zaktualizuj tabelę obrotową za pomocą elokwentu
$user = User::find(1);
$user->roles()->updateExistingPivot($roleId, [
'active' => false,
], false);
//The last param is to not update time updated_at column timestamp.
Make Your Own Project