The Laravel team added opt-in TypeScript support to the Laravel Breeze starter kit.
You can configure typescript through the interactive prompts when running breeze:install
using the latest version of Breeze:
You can also use the --typescript
flag if you want to skip the prompts like the following:
php artisan breeze:install vue --typescript
# Other options like SSR
php artisan breeze:install vue \
--typescript \
--ssr \
--pest \
--dark
If you prefer a video introduction to this feature, Laravel team member Nuno Maduro demonstrates TypeScript in Breeze in Laravel Weekly Update #2:
Also, thanks to Jess Archer, who added opt-in TypeScript support to the Breeze package.