frontend

Start the Vite development server with hot module replacement (HMR).

php artisan npm run dev

Syntax

Syntax
npm run dev [-- --port=3000]

Explanation

Runs the "dev" script from package.json, which typically starts Vite. Provides instant feedback on code changes without full page reloads. Works with Laravel, React, Vue, and other Vite-compatible projects.

Example

Example
npm run dev

Explanation

Runs the "dev" script from package.json, which typically starts Vite. Provides instant feedback on code changes without full page reloads. Works with Laravel, React, Vue, and other Vite-compatible projects.