snipe-it/app/Models/CompanyableChildTrait.php
2016-03-25 01:18:05 -07:00

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);
}
}