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'];
public function map()
return $this->belongsTo(Map::class, 'map_category_id', 'id');
}