定制 somecode/laravel-vue 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

somecode/laravel-vue

最新稳定版本:1.0.0

Composer 安装命令:

composer require somecode/laravel-vue

包简介

README 文档

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

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-11-27