定制 the-riptide/laravel-dynamic-text 二次开发

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

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

the-riptide/laravel-dynamic-text

Composer 安装命令:

composer create-project the-riptide/laravel-dynamic-text

包简介

A setup and dashboard to make text and translations easy to edit

README 文档

README

This package is meant to make it possible to quickly and easily turn snippets of texts, like headlines, descriptions and button texts editable via the dashboard.

to require the package run:

php composer require the-riptide/laravel-dynamic-texts

to set up the package, first go to your config app file and make sure 'locale' is set to the locale you'll be using in your project. This is important to do now, as the name of the locale will be attached to the new 'texts' table.

This done, run

php artisan language:setup

You can now have access to the special inline helper on the front. Under the hood, this makes use of Laravel's trans feature.

To use it, simply put __i('category.key', 'string you'd like to put in the database')

Then hit your page on the front and the string will be loaded into the database. Note, once the string is in the database with that category and key, it will stay there. This means, you can safetly remove the second string.

To access the database table first publish the config file

php artisan vendor:publish

and select this package from the list.

in the config file put the email you're going to use to access the dashboard. Then log in and hit the route

/dashboard/texts/edit

All your dynamic strings should appear here.

debuging

If you haven't yet used livewire in your project it's possible livewire will blow up. In that case, try adding the folder Livewire to app/Http folder. Nothing needs to be in it.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固