定制 teefa/prepare 二次开发

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

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

teefa/prepare

最新稳定版本:v1.0.0

Composer 安装命令:

composer require teefa/prepare

包简介

Preparing the most important things used for any project

README 文档

README

Preparing the most important things used for any project.

Installation

You can install the package via Composer:

composer require teefa/prepare

Publishing Assets

To publish the assets of this package, use the following command

php artisan vendor:publish --provider="Teefa\Prepare\PrepareServiceProvider" --tag=prepare

Available Publishable Resources

1-HttpResponse Trait:

This trait contains helper methods for returning consistent HTTP responses in your API. Published to: app/Traits/HttpResponse.php.

2-CustomizeDate Trait:

This trait provides methods to customize the display of created_at and updated_at fields in a human-readable format. Published to: app/Traits/CustomizeDate.php.

2-ApiLanguage Middleware:

Middleware that sets the application's locale based on the lang header in the API request. If no lang header is provided, it defaults to English.

Published to: app/Http/Middleware/ApiLanguage.php.

4-AutoCheckPermission Middleware:

Middleware that automatically checks user permissions for specific API routes and ensures that the user has the appropriate access level. Published to: app/Http/Middleware/AutoCheckPermission.php

5-UpdateUserLastActiveAt Middleware:

Middleware that updates the last_active_at field for users, which tracks when the user was last active. Published to: app/Http/Middleware/UpdateUserLastActiveAt.php.

Custom Namespace Updating

After publishing the traits or middleware, the package will automatically update the namespace in the published files to match the folder structure within your Laravel application.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固