More works on products

This commit is contained in:
Deon George
2022-02-01 16:40:46 +11:00
parent 1e9f15b40f
commit b9b4416737
36 changed files with 952 additions and 312 deletions

View File

@@ -1,17 +1,20 @@
<?php
/**
* Creates and returns the Service Options Model for an Order.
*/
namespace App\Traits;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
/**
* Creates and returns the Service Options Model for an Order.
*
* Example
*/
trait OrderServiceOptions
{
/*
protected $order_attributes = [
// Information required during the order process
protected array $order_attributes = [
'options.input'=>[
'request'=>'options.input',
'key'=>'column',
@@ -20,7 +23,7 @@ trait OrderServiceOptions
],
];
protected $order_model = NULL;
protected string $order_model = NULL;
*/
public function orderValidation(Request $request): ?Model

View File

@@ -16,6 +16,6 @@ trait ProductDetails
*/
public function getBillingIntervalStringAttribute(): string
{
return Invoice::billing_name(self::getBillingIntervalAttribute());
return Invoice::billing_name(static::getBillingIntervalAttribute());
}
}