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