Having Teams feature disabled, when using Setting::set() without specifying the $teamId parameter is resulting in Column not found: 1054 Unknown column 'team_id' in 'where clause' error
From what I see, the set function of the Setting model is defaulting the $teamId parameter to null, while in the condition inside the function is checking with !== false
Steps to reproduce
Install de package
Publish config and migrations
Migrate
Try to set a parameter with Setting::set('key', $value)
Laravel Settings
v3.4.0
Laravel Version
v10.48.12
Bug description
Having Teams feature disabled, when using
Setting::set()
without specifying the$teamId
parameter is resulting inColumn not found: 1054 Unknown column 'team_id' in 'where clause'
errorFrom what I see, the
set
function of the Setting model is defaulting the$teamId
parameter tonull
, while in the condition inside the function is checking with!== false
Steps to reproduce
Setting::set('key', $value)
Relevant log output
No response