somecode / laravel-vue
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/somecode/laravel-vue
Requires
- php: ^8.2
- laravel/prompts: ^0.3.7
Requires (Dev)
- larastan/larastan: ^3.8
- laravel/pint: ^1.26
- orchestra/testbench: ^10.7
README
A Laravel package that scaffolds a complete Vue.js SPA setup with TypeScript/JavaScript support
Русская версия • Russian version
About
Laravel Vue is an opinionated installer package that automates the setup of a modern Vue 3 Single Page Application within Laravel projects. It provides a complete, production-ready frontend stack with routing, state management, development tools, and seamless Laravel integration.
Requirements
- PHP >= 8.2
- Laravel >= 10
- Node.js & NPM
- Composer
Installation
Install the package via Composer:
composer require somecode/laravel-vue --dev
Run the interactive installer:
php artisan laravel-vue:install
What Gets Installed
Frontend Stack:
- Vue 3 with Composition API
- Vue Router for client-side routing
- Pinia for state management
- Axios for HTTP requests
- VueUse composables library
- Iconify for icons
Development Tools:
- Vite with Laravel Vite Plugin
- TypeScript configurations (if TS chosen)
- ESLint + Prettier
- SCSS with theme variables
Laravel Integration:
- Laravel Wayfinder (type-safe routes)
- Blade template with Vite directives
- SPA catch-all route (excludes
/api/*)
Project Structure:
resources/js/
├── app.ts # Application entry point
├── App.vue # Root component
├── router/ # Vue Router setup
├── stores/ # Pinia stores
├── views/ # Page components
├── components/ # Reusable components
├── composables/ # Vue composables
├── layouts/ # Layout components
└── api/ # API client
Building for Production
npm run build
Available NPM Scripts
npm run dev # Start development server npm run build # Build for production npm run lint # Run ESLint npm run lint:fix # Fix ESLint issues npm run format # Format code with Prettier npm run type-check # TypeScript type checking (TS only)
License
The MIT License (MIT). Please see License File for more information.
Author
Mikhail Protasevich
- Email: me.protasevich@gmail.com
