40 lines
876 B
PHP
40 lines
876 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
|
class Konto extends Model
|
|
{
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
protected $fillable = [
|
|
'konto_title',
|
|
'konto_gender',
|
|
'konto_first_name',
|
|
'konto_last_name',
|
|
'konto_company',
|
|
'konto_email',
|
|
'konto_address',
|
|
'konto_location',
|
|
'konto_plz',
|
|
'konto_country',
|
|
'konto_phone',
|
|
'konto_uid_number',
|
|
'konto_agb_akzeptiert',
|
|
'konto_option_id',
|
|
'konto_gutachten_zahl',
|
|
'konto_gutachten_zeit',
|
|
'konto_gutachten_abgeschlossen',
|
|
];
|
|
|
|
public function konto_option(): HasOne
|
|
{
|
|
return $this->hasOne(KontoOption::class, 'id', 'konto_option_id');
|
|
}
|
|
}
|