WIP: Standard backend theme page and login
Signed-off-by: Deon George <deon@leenooks.net>
This commit is contained in:
18
app/Models/Old/Account.php
Normal file
18
app/Models/Old/Account.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Old;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Account extends Model
|
||||
{
|
||||
protected $table = 'ab_account';
|
||||
|
||||
/**
|
||||
* The country this account belongs to
|
||||
*/
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Old\Country');
|
||||
}
|
||||
}
|
18
app/Models/Old/Country.php
Normal file
18
app/Models/Old/Country.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Old;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Country extends Model
|
||||
{
|
||||
protected $table = 'ab_country';
|
||||
|
||||
/**
|
||||
* The currency this country belongs to
|
||||
*/
|
||||
public function currency()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Old\Currency');
|
||||
}
|
||||
}
|
10
app/Models/Old/Currency.php
Normal file
10
app/Models/Old/Currency.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Old;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Currency extends Model
|
||||
{
|
||||
protected $table = 'ab_currency';
|
||||
}
|
Reference in New Issue
Block a user