Improvements to ordering

This commit is contained in:
Deon George
2018-08-20 22:15:28 +10:00
parent e9b5f9ac0c
commit 8d9b0c7027
14 changed files with 217 additions and 124 deletions

View File

@@ -4,8 +4,13 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Traits\NextKey;
class Account extends Model
{
use NextKey;
public $incrementing = FALSE;
protected $table = 'ab_account';
public $timestamps = FALSE;

View File

@@ -8,6 +8,7 @@ use App\Traits\NextKey;
class Service extends Model
{
use NextKey;
public $incrementing = FALSE;
protected $table = 'ab_service';
protected $with = ['product.descriptions','account.language','service_adsl','service_domain.tld','service_ssl','service_voip'];
@@ -15,7 +16,6 @@ class Service extends Model
protected $casts = [
'order_info'=>'array',
];
public $incrementing = FALSE;
const CREATED_AT = 'date_orig';
const UPDATED_AT = 'date_last';