2020-04-12 00:26:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2021-06-13 11:26:38 +02:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2020-04-12 00:26:44 +02:00
|
|
|
|
|
|
|
class Country extends Model
|
|
|
|
{
|
2021-06-13 11:26:38 +02:00
|
|
|
use HasFactory;
|
|
|
|
|
2020-04-12 00:26:44 +02:00
|
|
|
public $fillable = ['name', 'nami_id'];
|
|
|
|
|
2021-06-22 23:00:27 +02:00
|
|
|
public static function default(): int {
|
|
|
|
return self::whereName('Deutschland')->firstOrFail()->id;
|
|
|
|
}
|
|
|
|
|
2020-04-12 00:26:44 +02:00
|
|
|
public $timestamps = false;
|
|
|
|
}
|