Natinality, Country, Agenda, search Request. CMS
Magazine Content
This commit is contained in:
parent
30d5ca3b44
commit
aebfb0586a
72 changed files with 4636 additions and 590 deletions
49
app/Models/TravelNationalityRequirement.php
Normal file
49
app/Models/TravelNationalityRequirement.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?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)
|
||||
* @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');
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue