Files
monica/app/Models/AddressType.php
T

33 lines
641 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class AddressType extends Model
{
use HasFactory;
protected $table = 'address_types';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'account_id',
'name',
];
/**
* Get the account associated with the contact information type.
*/
public function account(): BelongsTo
{
return $this->belongsTo(Account::class);
}
}