fix flags

This commit is contained in:
salam committed 2026-02-24 17:27:47 +01:00
1 parent 2cdc70f5a4
commit 7acb1375d4
11 files changed
+1035 -14

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class Country extends Model
{
protected $fillable = [
'id',
'name',
'icon',
'iso2',
+1 -1
View File
@@ -40,7 +40,7 @@ class Event extends Model
public function country()
{
return $this->belongsTo(Country::class)->where('disabled', 0)->where('is_country', 1);
return $this->belongsTo(Country::class)->where('disabled', 0);
}
public function group()
+5
View File
@@ -32,6 +32,11 @@ class Mapper extends Model
return $this->belongsTo(Country::class, 'group_cc', 'iso2')->where('is_country', 1)->where('disabled', 0);
}
public function country_magloo()
{
return $this->belongsTo(Country::class, 'country', 'name');
}
public function provider()
{
return $this->belongsTo(Provider::class);