17 nov 2018

This commit is contained in:
Kevin Adametz 2018-11-17 02:03:59 +01:00
parent 0c9a118281
commit 765d6a2f6b
52 changed files with 3200 additions and 229 deletions

View file

@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TravelCountry extends Model
{
//use the connection to sec. Datebase sterntours
protected $connection = 'mysql_stern';
protected $table = 'travel_country';
protected $fillable = [
'name',
'html_information',
];
public $timestamps = false;
public function travel_program_country()
{
return $this->hasOne('App\Models\TravelProgramCountry', 'country_id', 'id');
}
}