diff --git a/composer.json b/composer.json index 3a31ff0..1efb0e0 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fleetbase/core-api", - "version": "1.6.36", + "version": "1.6.37", "description": "Core Framework and Resources for Fleetbase API", "keywords": [ "fleetbase", diff --git a/src/Models/Model.php b/src/Models/Model.php index 0ee70bf..c4bdd90 100644 --- a/src/Models/Model.php +++ b/src/Models/Model.php @@ -2,7 +2,6 @@ namespace Fleetbase\Models; -use Fleetbase\Scopes\CompanyScope; use Fleetbase\Traits\ClearsHttpCache; use Fleetbase\Traits\Expandable; use Fleetbase\Traits\Filterable; @@ -66,27 +65,6 @@ public function __construct(array $attributes = []) */ public $incrementing = false; - /** - * Boot the model and register global scopes. - * - * The CompanyScope is registered here so that every subclass automatically - * inherits tenant isolation on all Eloquent queries. The scope is - * self-guarding: it only activates when a company UUID is present in the - * session and the model's table has a `company_uuid` column, so models - * without that column (User, Company, Setting, etc.) are unaffected. - * - * To bypass the scope for a specific query (e.g. super-admin tooling): - * Model::withoutCompanyScope()->where(...)->get(); - * - * @return void - */ - protected static function boot() - { - parent::boot(); - - static::addGlobalScope(new CompanyScope()); - } - /** * Determines if model is searchable. *