56 lines
1,016 B
PHP
56 lines
1,016 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
* Date: Thu, 21 Mar 2019 13:40:10 +0100.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class FewoSeason
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property \Carbon\Carbon $from_date
|
|
* @property \Carbon\Carbon $to_date
|
|
* @property int $minimum_stay
|
|
* @property string $description
|
|
* @property int $only_weekday
|
|
* @property \Illuminate\Database\Eloquent\Collection $fewo_prices
|
|
* @package App\Models
|
|
* @mixin \Eloquent
|
|
*/
|
|
class FewoSeason extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'fewo_season';
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'minimum_stay' => 'int',
|
|
'only_weekday' => 'int'
|
|
];
|
|
|
|
protected $dates = [
|
|
'from_date',
|
|
'to_date'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'from_date',
|
|
'to_date',
|
|
'minimum_stay',
|
|
'description',
|
|
'only_weekday'
|
|
];
|
|
|
|
public function fewo_prices()
|
|
{
|
|
return $this->hasMany(\App\Models\FewoPrice::class, 'season_id');
|
|
}
|
|
}
|