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 Map extends BaseModel
{
protected $table = 'maps';
protected $fillable = [ 'map_category_id', 'name', 'display_name', 'map_x', 'map_y', 'location', 'filename' ];
protected $dates = [ 'created_at', 'updated_at'];
public function category()
return $this->hasOne(MapCategory::class, 'id', 'map_category_id');
}
public function buildings()
//