Initial refactoring work

This commit is contained in:
Deon George
2018-05-20 22:53:14 +10:00
parent d6cb505e1c
commit feda44db8a
121 changed files with 6601 additions and 602 deletions

View File

@@ -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);
}
}