Initial refactoring work
This commit is contained in:
@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Country extends Model
|
||||
{
|
||||
protected $table = 'ab_country';
|
||||
public $timestamps = FALSE;
|
||||
|
||||
/**
|
||||
@@ -13,7 +14,7 @@ class Country extends Model
|
||||
*/
|
||||
public function currency()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Currency');
|
||||
return $this->belongsTo(Currency::class);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,6 +22,6 @@ class Country extends Model
|
||||
*/
|
||||
public function users()
|
||||
{
|
||||
return $this->hasMany('App\User');
|
||||
return $this->hasMany(\App\User::class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user