All I hear these days is either:
Never give the company anything because they'll never give anything to you
or
Work hard and you'll be noticed and climb the ladder.
Neither is inherently true.
You can be in a 'family' company where the next lazy AF 18 YO will be your next boss
You can be in a corporate meritocracy where your boss is an idiot and just stands on your shoulders without passing anything downhill.
If your company has upward momentum and your boss is both a decent and transparent human being, you can work hard and move up.
You can also work hard and succeed at projects and hop job to job with a strong resume (assuming the market isn't shit, like it is atm)
Know your boss.