ok
This commit is contained in:
16
Production/SNIPE-IT/app/Models/CompanyableTrait.php
Normal file
16
Production/SNIPE-IT/app/Models/CompanyableTrait.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
trait CompanyableTrait
|
||||
{
|
||||
/**
|
||||
* Boot the companyable trait for a model.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function bootCompanyableTrait()
|
||||
{
|
||||
static::addGlobalScope(new CompanyableScope);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user