wp-kit/softdeletes

A wp-kit component that provides soft deletes for Eloquent models
1,081
Install
composer require wp-kit/softdeletes
Latest Version:1.0.3
PHP:>=7.2
Laravel:8
Older releases:5 · 6
License:MIT
Last Updated:Aug 18, 2021
Links: GitHub  ·  Packagist
Maintainer: terence1990

wp-kit/softdeletes

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.

Related Packages

wp-kit/shortcodes

A wp-kit component that handles shortcodes

2,503 0
wp-kit/acf-integration

A wp-kit component that handles ACF configuration

2,401 1
wp-kit/utils

A set of utilities for wp-kit components

10,136 0
wp-kit/hashing

A wp-kit component that handles password hashing

7,453 0
tareq1988/wp-eloquent

Eloquent ORM for WordPress

57,084 567

Version History

Version Released PHP Laravel License
1.0.3 >=7.2 ^8.0 MIT
1.0.2 >=7.2 ^6.0 MIT
1.0.1 >=5.6.4 5.5.* MIT
1.0.0 >=5.6.4 5.* MIT