36 lines
650 B
PHP
36 lines
650 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
* Date: Thu, 21 Mar 2019 13:40:08 +0100.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class FewoLodgingType
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property \Illuminate\Database\Eloquent\Collection $fewo_lodgings
|
|
* @package App\Models
|
|
* @mixin \Eloquent
|
|
*/
|
|
class FewoLodgingType extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'fewo_lodging_type';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name'
|
|
];
|
|
|
|
public function fewo_lodgings()
|
|
{
|
|
return $this->hasMany(\App\Models\FewoLodging::class, 'type_id');
|
|
}
|
|
}
|