for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class DataField extends Model
{
use HasFactory;
protected $primaryKey = 'field_id';
protected $fillable = ['equip_id', 'type_id', 'order'];
protected $hidden = ['updated_at', 'created_at'];
public function DataFieldType()
return $this->hasOne('App\Models\DataFieldType', 'type_id', 'type_id');
}