7b5d90dd81
Signed-off-by: snipe <snipe@snipe.net>
19 lines
324 B
PHP
19 lines
324 B
PHP
<?php
|
|
|
|
namespace App\Models\Traits;
|
|
|
|
use App\Models\CompanyableChildScope;
|
|
|
|
trait CompanyableChildTrait
|
|
{
|
|
/**
|
|
* Boot the companyable trait for a model.
|
|
*
|
|
* @return void
|
|
*/
|
|
public static function bootCompanyableChildTrait()
|
|
{
|
|
static::addGlobalScope(new CompanyableChildScope);
|
|
}
|
|
}
|