for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Starpeace\Models\Eloquent\Common;
use Starpeace\Models\Eloquent\BaseModel;
class MapCategory extends BaseModel
{
protected $table = 'map_categories';
protected $fillable = ['name', 'display_name'];
protected $dates = ['created_at', 'updated_at'];
protected $dateFormat ='Y-m-d H:i:s';
public function getCreatedAtAttribute($value)
return $value->format('d.m.Y H:i:s');
}
public function getUpdatedAtAttribute($value)