Created
April 13, 2021 13:25
-
-
Save pavarov/2365512fe801b617e7ca2684b89044d0 to your computer and use it in GitHub Desktop.
Laravel. Cancel soft delete trait
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Traits; | |
trait CancelSoftDelete | |
{ | |
protected $forceDeleting = true; | |
public static function bootSoftDeletes(): void | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment