17 nov 2018
This commit is contained in:
parent
0c9a118281
commit
765d6a2f6b
52 changed files with 3200 additions and 229 deletions
31
app/Models/TravelProgramCountry.php
Normal file
31
app/Models/TravelProgramCountry.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TravelProgramCountry extends Model
|
||||
{
|
||||
//use the connection to sec. Datebase sterntours
|
||||
protected $connection = 'mysql_stern';
|
||||
|
||||
protected $table = 'travel_program_country';
|
||||
|
||||
|
||||
protected $fillable = [
|
||||
'program_id',
|
||||
'country_id',
|
||||
];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function travel_program()
|
||||
{
|
||||
return $this->belongsTo('App\Models\TravelProgram', 'program_id');
|
||||
}
|
||||
|
||||
public function travel_country()
|
||||
{
|
||||
return $this->belongsTo('App\Models\TravelCountry', 'country_id');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue