52 lines
1.8 KiB
PHP
52 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\TravelNationalityRequirement
|
|
*
|
|
* @property int $id
|
|
* @property int|null $travel_country_id
|
|
* @property int|null $travel_nationality_id
|
|
* @property string|null $text
|
|
* @property-read \App\Models\TravelCountry|null $travel_country
|
|
* @property-read \App\Models\TravelNationality|null $travel_nationality
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelNationalityRequirement whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelNationalityRequirement whereText($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelNationalityRequirement whereTravelCountryId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelNationalityRequirement whereTravelNationalityId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelNationalityRequirement newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelNationalityRequirement newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelNationalityRequirement query()
|
|
* @mixin \Eloquent
|
|
*/
|
|
class TravelNationalityRequirement extends Model
|
|
{
|
|
//use the connection to sec. Datebase sterntours
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'travel_nationality_requirement';
|
|
|
|
|
|
protected $fillable = [
|
|
'travel_country_id',
|
|
'travel_nationality_id',
|
|
'text',
|
|
];
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
public function travel_country()
|
|
{
|
|
return $this->belongsTo('App\Models\TravelCountry', 'travel_country_id');
|
|
}
|
|
|
|
public function travel_nationality()
|
|
{
|
|
return $this->belongsTo('App\Models\TravelNationality', 'travel_nationality_id');
|
|
}
|
|
|
|
}
|