File: /var/www/html/fieldsblaze-heroku/app/Models/Expense.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Expense extends Model
{
public $timestamps = false;
protected $table = 'tbl_expense';
protected $fillable = [
'ExpenseId',
'AmountId',
'Comments',
'Date',
'IsDeleted',
'LastActivityDate',
'LastModifiedById',
'LastModifiedDate',
'Name',
'Status',
'Created_by',
'Created_at',
'Updated_by',
'Updated_at',
'DeviceName'
];
function getCreatedByAttribute($value)
{
return ucFirst($value);
}
function getUpdatedByAttribute($value)
{
return ucFirst($value);
}
}