3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 18:45:49 +00:00
Files
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);
}
}