Work on products, first completed broadband
This commit is contained in:
21
app/Traits/ProductDetails.php
Normal file
21
app/Traits/ProductDetails.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Consistent Details on Products
|
||||
*/
|
||||
namespace App\Traits;
|
||||
|
||||
use App\Models\Invoice;
|
||||
|
||||
trait ProductDetails
|
||||
{
|
||||
/**
|
||||
* Return a human friendly name for the billing interval
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBillingIntervalStringAttribute(): string
|
||||
{
|
||||
return Invoice::billing_name(self::getBillingIntervalAttribute());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user