mabrouk/project-setting 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mabrouk/project-setting

最新稳定版本:3.2.0

Composer 安装命令:

composer require mabrouk/project-setting

包简介

a laravel package to handle dealing with project setting in groups

README 文档

README

mabrouk/project-setting is a Laravel api package for dealing with project settings.

Table of Content

Usage sequence

Installation

Configurations according to project needs

Out of the box models

Out of the box routes

What else?

Any thing else?

License

Usage sequence

After installation and modifing configuration:

  • run command php artisan setting:install.
  • include predefined routes which control project setting types, groups, sections and settings display names in your api documentation to make it available for implementation from frontend developer side. or guide frontend developer to this documentation Models Api Resources to expect in requests response section

Installation

You can install the package using composer.

composer require mabrouk/project-setting
  • Now you need to run the following command in order to migrate package tables and publish project_settings.php config file to config directory
php artisan setting:install

Configurations according to project needs

Config file have several configuration options and already have enough comments to describe every key meaning and how to use.

You may access it under config/project_settings.php

After modifying project_settings.php config file don't forget to run below command:

php artisan config:cache

Out of the box models

We have 4 basic models to deal with:

  • ProjectSettingType
  • ProjectSettingGroup
  • ProjectSettingSection
  • ProjectSetting

Out of the box routes

Let's run the route:list command and discover our package predefined routes

php artisan route:list

What else?

// to be continue

Any thing else?

Actually one more thing to know is that this package depend on mabrouk/translatable package in order to handle translation dynamically for any chosen language.

You will need to pass additional input "locale" in update requests of mentioned models and need to create groups and sections with your application default language.

To get response with desired language you need to pass additional header to your requests "X-locale" with one of the available locales in your application

Both "locale" and "X-locale" accept values like ['en', 'ar', 'fr', ...] etc depending on languages you support in your project.

License

mabrouk/project-setting package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-24