File: /var/www/html/fieldsblaze-heroku/app/Models/Customer.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Customer extends Model
{
public $timestamps = false;
protected $table = "tbl_customer";
protected $fillable = [
'CustomerId',
'AccountId',
'CustomerCode',
'CustomerName',
'Title',
'FirstName',
'LastName',
'Email',
'BillingAddress',
'BillingCountry',
'BillingState',
'BillingCity',
'BillingPinCode',
'ShippingAddress',
'ShippingCountry',
'ShippingState',
'ShippingCity',
'ShippingPinCode',
'Zone',
'GeoLocation',
'Mobile',
'AlternateMobile',
'Type',
'Status',
'ParentCustomer',
'PrimaryContact',
'PaymentTerm',
'PriceBook',
'CrmId',
'Created_by',
'Created_at',
'Updated_by',
'Updated_at'
];
function getCreatedByAttribute($value)
{
return ucFirst($value);
}
function getUpdatedByAttribute($value)
{
return ucFirst($value);
}
}