Account next invoice, and authorisations

This commit is contained in:
Deon George
2019-07-04 14:55:05 +10:00
parent 59a8ef2476
commit 21ea60c4f9
26 changed files with 532 additions and 102 deletions

View File

@@ -10,7 +10,7 @@ class Site extends Model
protected $table = 'ab_setup';
public $timestamps = FALSE;
protected $with = ['details'];
protected $with = ['details','language'];
protected $casts = [
'address'=>'array',
@@ -23,9 +23,6 @@ class Site extends Model
public function language()
{
if (! $this->id)
return Language::find(1);
return $this->belongsTo(Language::class);
}
@@ -151,6 +148,7 @@ class Site extends Model
],
],
'clients_intro'=>'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore',
'language_id'=>1,
'page_tabs'=>[
[
'title'=>'Title 1',