定制 lilessam/translationman 二次开发

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

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

lilessam/translationman

Composer 安装命令:

composer require lilessam/translationman

包简介

Easy Language Files Management Package

README 文档

README

TranslationMan Package For Laravel

This small package gives you all functionlaity you need to manage your laravel language files with simple forms you can integrate in your application layout.

Features

  1. Lanaguages Creation/Deletion.
  2. Language Files Creation/Deletion.
  3. Files' array modification with a simple form (Allows multi dimensional arrays with dots in the index column).

Installation

Via Composer composer require lilessam/translationman

Add Lilessam\Translationman\TranslationmanServiceProvider::class to your providers array in config/app.php.

You will also have to set resources/lang folder permissions to 777.

Publish Config and Views

php artisan vendor:publish --provider="Lilessam\Translationman\TranslationmanServiceProvider" Now views files will be published in resources/views/vendor/translationman.

You will realize that all files contains only basic bootstrap forms. You will have to integrate this forms as you like.

Routes

When you publish the service provider files you will see translationman.php file in Config folder. So there you can url_prefix. Default is translations so it can be viewed by app.dev/translations.

You can also provide a middleware for the package routes by modifying middleware in the config file.

The middleware can be string or an array of middlewares (BUT CANNOT BE EMPTY STRING).

Notice: All package views are pure Bootstrap forms and tables without any CSS. You have to integrate views files into your application theme by extending your layouts.

Working with VueJS Components

If you would like to pass your language array to a VueJS component you need to use json_lang helper which will pass your lang array with no problems.

<my-component :lang='{!! json_lang("components.mine") !!}'></my-component>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固