2017 © Pedro Peláez
 

library laravel-dependable-softdelete

A laravel dependable soft delete package

image

nitinkaware/laravel-dependable-softdelete

A laravel dependable soft delete package

  • Sunday, January 21, 2018
  • by nitinkaware
  • Repository
  • 1 Watchers
  • 4 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

laravel-dependable-softdelete

This package allows you to delete the dependant relationship of your model., (*1)

Installation

You can install the package via Composer:, (*2)

``` bash $ composer require nitinkaware/laravel-dependable-softdelete, (*3)


Now add the service provider in config/app.php file: ``` bash 'providers' => [ // ... NitinKaware\DependableSoftDeletable\SoftDeletableServiceProvider::class, ];

How to use the package?

Just define the relationship array on model. ``` bash Filename: User.php, (*4)

class User extends Model {, (*5)

use DependableDeleteTrait, SoftDeletes;

protected static $dependableRelationships = ['comments'];

public fuction comments()
{
    return $this->hasMany(Comment::class);
}

}, (*6)


Now when you will delete the user, all the comments associated with deleting user will automatically deleted. If you have other relation defined in Comment.php model, then they will be deleted too. ## Change log Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Security

If you discover any security related issues, please email nitin.kaware1@gmail.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

21/01 2018

dev-master

9999999-dev https://github.com/nitinkaware/laravel-dependable-softdelete.git

A laravel dependable soft delete package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nitin Kaware

laravel soft-delete laravel-soft-deletable

23/03 2017

1.0.0

1.0.0.0 https://github.com/nitinkaware/laravel-dependable-softdelete.git

A laravel dependable soft delete package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nitin Kaware

laravel soft-delete laravel-soft-deletable