In our service area: yes, a hardwired Level 2 charger needs an electrical permit and an inspection. A plug-in unit on an existing correct outlet does not — but very few garages have that outlet.
The permit is not the expensive part; the panel capacity is. We pull the permit, schedule the inspection, and hand you the passed card. It protects your insurance claim if anything ever happens.