somecode/laravel-vue

There is no license information available for the latest version (1.0.0) of this package.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/somecode/laravel-vue

1.0.0 2025-11-27 11:46 UTC

This package is auto-updated.

Last update: 2025-11-27 12:05:38 UTC


README

PHP Version License

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

img.png

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