mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
16 lines
262 B
PHP
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);
|
|
}
|
|
}
|