The Laravel team added opt-in TypeScript support to the Laravel Breeze starter kit.
— Taylor Otwell 🪐 (@taylorotwell) March 22, 2023This week we shipped TypeScript support for our Inertia powered React and Vue stacks on Laravel Breeze.
It’s the fastest way to pair a modern TypeScript frontend with the most productive full-stack framework on the planet. ❤️ https://t.co/H3PDXlQV1v
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.