feat : Tenant Scope 추가 - 모델에 해당 유저의 tenant_id 로 자동 매핑 (CommonCode 모델에 추가)

This commit is contained in:
2025-07-25 17:31:08 +09:00
parent 201df48853
commit 94501d5624
5 changed files with 58 additions and 6 deletions

View File

@@ -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';