Files
snipe-it/app/models/CompanyableTrait.php
T
2015-11-19 08:48:43 +03:00

15 lines
240 B
PHP

<?php
trait CompanyableTrait
{
/**
* Boot the companyable trait for a model.
*
* @return void
*/
public static function bootCompanyableTrait()
{
static::addGlobalScope(new CompanyableScope);
}
}