laravel-typefinder maintained by pentacore
Last update
2026/05/15 08:37
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/15 08:37
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/15 08:37
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/15 08:36
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/09 07:32
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/08 12:42
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/08 12:42
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/08 12:40
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/08 12:40
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/08 12:40
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/08 11:05
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/08 11:04
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/07 10:46
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/05/07 10:33
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/22 11:01
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/17 11:35
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/17 10:13
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/16 12:13
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/16 10:32
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/15 21:53
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/14 22:30
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/14 22:19
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/14 20:44
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/14 14:59
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Last update
2026/04/14 12:50
License
Require
- php ^8.3
- illuminate/console ^11.0|^12.0|^13.0
- illuminate/database ^11.0|^12.0|^13.0
- illuminate/filesystem ^11.0|^12.0|^13.0
- illuminate/support ^11.0|^12.0|^13.0
- illuminate/validation ^11.0|^12.0|^13.0
Laravel Typefinder
Laravel Typefinder auto-generates TypeScript type definitions (.d.ts files) from your Laravel application's Models, Enums, Form Requests, and Casts. It introspects your database schema, cast declarations, validation rules, and relationships to produce accurate, always-fresh types — no manual maintenance required.
Packages
| Package | Install |
|---|---|
pentacore/laravel-typefinder |
composer require pentacore/laravel-typefinder |
@pentacore/vite-plugin-laravel-typefinder |
npm i -D @pentacore/vite-plugin-laravel-typefinder |
Quick start
1. Install the Composer package:
composer require pentacore/laravel-typefinder
2. Register the Vite plugin (vite.config.js):
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import typefinder from '@pentacore/vite-plugin-laravel-typefinder';
export default defineConfig({
plugins: [
laravel({ input: ['resources/js/app.js'] }),
typefinder(),
],
});
3. Generate types:
php artisan typefinder:generate
Types are written to resources/js/types/ by default. The Vite plugin re-runs generation automatically on HMR file changes.
Documentation
Full documentation for each package:
- packages/laravel-typefinder/README.md — configuration, all features, CLI flags,
HasTypeOverrides,HasTypeDefinition - packages/vite-plugin-laravel-typefinder/README.md — plugin options, debounce behaviour, alternative install from vendor
Development
# Install PHP dependencies
composer install
# Install JS dependencies
npm install
# Run PHP tests
vendor/bin/phpunit
# Check PHP code style
vendor/bin/pint --test
# Build the Vite plugin
npm -w packages/vite-plugin-laravel-typefinder run build
# Lint the Vite plugin
npm -w packages/vite-plugin-laravel-typefinder run lint
See CONTRIBUTING.md for full contributor guidelines.
License
MIT — see LICENSE.