feat : Tenant Scope 추가 - 모델에 해당 유저의 tenant_id 로 자동 매핑 (CommonCode 모델에 추가)
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use App\Traits\BelongsToTenant;
|
||||
class CommonCode extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
use SoftDeletes, BelongsToTenant;
|
||||
|
||||
protected $table = 'common_codes';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user