mein-sterntours/app/Models/FewoLodgingType.php
Kevin Adametz c0c2a1822c Fewos in CRM,
Fewo Clients Bookings
create / edit / delelte
via API in DB
2019-03-28 14:53:16 +01:00

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');
}
}