mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-30 07:59:50 -08:00
16 lines
277 B
PHP
16 lines
277 B
PHP
|
<?php
|
||
|
namespace App\Models;
|
||
|
|
||
|
trait CompanyableChildTrait
|
||
|
{
|
||
|
/**
|
||
|
* Boot the companyable trait for a model.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public static function bootCompanyableChildTrait()
|
||
|
{
|
||
|
static::addGlobalScope(new CompanyableChildScope);
|
||
|
}
|
||
|
}
|