. */ namespace Modules\Anagrafiche; use Common\SimpleModelTrait; use Illuminate\Database\Eloquent\Model; class Referente extends Model { use SimpleModelTrait; protected $table = 'an_referenti'; /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = []; public function anagrafica() { return $this->belongsTo(Anagrafica::class, 'idanagrafica'); } public function sede() { return $this->belongsTo(Sede::class, 'idsede'); } }