mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 10:48:13 +00:00
22 lines
354 B
PHP
22 lines
354 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace FireflyIII\Database\Scope;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Class AccountScopeTrait
|
||
|
|
*
|
||
|
|
* @package FireflyIII\Database\Scope
|
||
|
|
*/
|
||
|
|
trait AccountScopeTrait
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Boot the soft deleting trait for a model.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public static function bootAccountScopeTrait()
|
||
|
|
{
|
||
|
|
static::addGlobalScope(new AccountScope);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|