fix flags
This commit is contained in:
1 parent
2cdc70f5a4
commit
7acb1375d4
11 files changed
+1035
-14
No files matched your search
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Country extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'icon',
|
||||
'iso2',
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user