WIP: User table populated and login
This commit is contained in:
@@ -7,4 +7,23 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Account extends Model
|
||||
{
|
||||
protected $table = 'ab_account';
|
||||
public $timestamps = FALSE;
|
||||
|
||||
/**
|
||||
* Return the country the user belongs to
|
||||
*/
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function language()
|
||||
{
|
||||
return $this->belongsTo(Language::class);
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(\App\User::class);
|
||||
}
|
||||
}
|
@@ -29,7 +29,7 @@ class Invoice extends Model
|
||||
|
||||
public function account()
|
||||
{
|
||||
return $this->belongsTo(\App\User::class);
|
||||
return $this->belongsTo(Account::class);
|
||||
}
|
||||
|
||||
public function items()
|
||||
|
@@ -23,7 +23,7 @@ class Payment extends Model
|
||||
|
||||
public function account()
|
||||
{
|
||||
return $this->belongsTo(\App\User::class);
|
||||
return $this->belongsTo(Account::class);
|
||||
}
|
||||
|
||||
public function items()
|
||||
|
@@ -34,7 +34,7 @@ class Service extends Model
|
||||
|
||||
public function account()
|
||||
{
|
||||
return $this->belongsTo(\App\User::class);
|
||||
return $this->belongsTo(Account::class);
|
||||
}
|
||||
|
||||
public function service_adsl()
|
||||
|
Reference in New Issue
Block a user