Actualizacuion de Rama Kquiroz
This commit is contained in:
@@ -6,14 +6,19 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Country extends Model
|
||||
{
|
||||
/**
|
||||
* Get the Zone that owns the Country
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function zone()
|
||||
{
|
||||
return $this->belongsTo(Zone::class);
|
||||
}
|
||||
/**
|
||||
* Get the Zone that owns the Country
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function zone()
|
||||
{
|
||||
return $this->belongsTo(Zone::class);
|
||||
}
|
||||
|
||||
public function scopeIsEnabled($query)
|
||||
{
|
||||
return $query->where('status', '1');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user