<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class MaterialResource extends Model { protected $table = 'm_material_resource'; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; protected $fillable = [ 'name', 'uom', 'unit_price', 'description', 'status', 'qty', 'created_at', 'created_by', 'updated_at', 'updated_by' ]; }