承接 wp-kit/softdeletes 相关项目开发

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

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

wp-kit/softdeletes

最新稳定版本:1.0.3

Composer 安装命令:

composer require wp-kit/softdeletes

包简介

A wp-kit component that provides soft deletes for Eloquent models

README 文档

README

This is a wp-kit component that provides soft deletes for Eloquent models.

Installation

If you're using Themosis, install via Composer in the root of your Themosis installation, otherwise install in your Composer driven theme folder:

composer require "wp-kit/softdeletes"

Usage

Model

wp-kit/softdeletes comes with a trait, so all you need to do is include these in your model.

Based on drewjbartlett/wordpress-eloquent you can the Post model provided and use the SoftDeletes trait.

namespace Theme\Models;

use WPEloquent\Model\Post;
use WPKit\SoftDeletes\SoftDeletes;

class SomePostType extends Post {
	
	use SoftDeletes;
	
}

Get Involved

To learn more about how to use wp-kit check out the docs:

View the Docs

Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:

  • Reporting a bug issue
  • Suggesting features
  • Sending a pull request with code fix or feature
  • Following the project on GitHub
  • Sharing the project around your community

For details about contributing to the framework, please check the contribution guide.

Requirements

Wordpress 4+

PHP 5.6+

License

wp-kit/softdeletes is open-sourced software licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-19