Fixed order processing, broken after upgrade to Laravel 5.8

This commit is contained in:
Deon George
2019-06-13 14:32:34 +10:00
parent 9fa773d283
commit 4c5c43c390
13 changed files with 68 additions and 16 deletions

View File

@@ -10,9 +10,11 @@ class Service extends Model
{
use NextKey;
public $incrementing = FALSE;
const RECORD_ID = 'service';
const CREATED_AT = 'date_orig';
const UPDATED_AT = 'date_last';
public $incrementing = FALSE;
protected $table = 'ab_service';
protected $with = ['product.descriptions','account.language'];
@@ -86,7 +88,7 @@ class Service extends Model
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function orderedby()
public function orderby()
{
return $this->belongsTo(Account::class);
}