37 lines
745 B
PHP
37 lines
745 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Scopes\KontoScope;
|
|
use Database\Factories\GutachterFactory;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Gutachter extends Model
|
|
{
|
|
use HasFactory;
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'konto_id',
|
|
'name',
|
|
'logo',
|
|
'address',
|
|
'country',
|
|
'email',
|
|
'phone',
|
|
];
|
|
|
|
protected static function booted(): void
|
|
{
|
|
static::addGlobalScope(new KontoScope);
|
|
}
|
|
|
|
protected static function newFactory(): Factory
|
|
{
|
|
return GutachterFactory::new();
|
|
}
|
|
}
|