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

16 lines
262 B
PHP

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