File: /var/www/html/fieldsblaze-heroku/app/Models/Order.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
public $timestamps = false;
protected $table = 'tbl_order';
protected $fillable = [
'OrderId',
'CustomerId',
'FullFilledBy',
'PaymentTerms',
'DeliveryMethod',
'Supplier',
'OrderBookDate',
'OrderDeliveryDate',
'BillingStreetAddress',
'BillingCity',
'BillingCountry',
'BillingState',
'BillingPostalCode',
'ShippingStreetAddress',
'ShippingCity',
'ShippingCountry',
'ShippingState',
'ShippingPostalCode',
'OrderNotes',
'Created_at',
'Created_by',
'Updated_at',
'Updated_by',
'IsDeleted',
'IsReturn',
'ReturnReason',
'OrderStatus',
'Status',
'CrmId',
];
function getCreatedByAttribute($value)
{
return ucFirst($value);
}
function getUpdatedByAttribute($value)
{
return ucFirst($value);
}
}