mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-16 18:44:10 -08:00
f50ccbcc49
As of commit 5800e8d
the user model uses CompanyableTrait so remove this clearly outdated comment
19 lines
455 B
PHP
19 lines
455 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
trait CompanyableTrait
|
|
{
|
|
/**
|
|
* This trait is used to scope models to the current company. To use this scope on companyable models,
|
|
* we use the "use Companyable;" statement at the top of the mode.
|
|
*
|
|
* @see \App\Models\Company\Company::scopeCompanyables()
|
|
* @return void
|
|
*/
|
|
public static function bootCompanyableTrait()
|
|
{
|
|
static::addGlobalScope(new CompanyableScope);
|
|
}
|
|
}
|