承接 exolnet/laravel-vue-data 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

exolnet/laravel-vue-data

最新稳定版本:v1.10.0

Composer 安装命令:

composer require exolnet/laravel-vue-data

包简介

Adds utilities to easily pass data from Laravel to Vue.

README 文档

README

Latest Stable Version Software License Build Status Total Downloads

Adds utilities to easily pass data from Laravel to Vue.

Installation

Require this package with composer:

composer require exolnet/laravel-vue-data

If you don't use package auto-discovery, add the service provider to the providers array in config/app.php:

Exolnet\VueData\VueDataServiceProvider::class

And the facade to the facades array in config/app.php:

'Vue' => Exolnet\VueData\Facades\Vue::class

Usage

Define variables

First, you need to devine variable that will be available in your Vue application.

In your PHP code:

Vue::put('variable', 'value')

In a Blade view:

@vue('variable', 'value')

Make variables available

In your base layout, add the following view before your main app.js to make the variables available:

@include('vue-data::variables')

Use variables

In your app.js, use the variables defined when they are available:

new Vue({
    el: '#app',
    data: () => window.App || {},
});

Testing

To run the phpUnit tests, please use:

composer test

Contributing

Please see CONTRIBUTING and CODE OF CONDUCT for details.

Security

If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.

Credits

License

Copyright © eXolnet. All rights reserved.

This code is licensed under the MIT license. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固