58 lines
1.8 KiB
PHP
58 lines
1.8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
* Date: Thu, 21 Mar 2019 13:40:07 +0100.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class FewoLodgingImage
|
|
*
|
|
* @property int $id
|
|
* @property int $lodging_id
|
|
* @property int $pos
|
|
* @property string $full_file_name
|
|
* @property string $file_name
|
|
* @property string $description
|
|
* @property \App\Models\FewoLodging $fewo_lodging
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage whereDescription($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage whereFileName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage whereFullFileName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage whereLodgingId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingImage wherePos($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class FewoLodgingImage extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'fewo_lodging_image';
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'lodging_id' => 'int',
|
|
'pos' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'lodging_id',
|
|
'pos',
|
|
'full_file_name',
|
|
'file_name',
|
|
'description'
|
|
];
|
|
|
|
public function fewo_lodging()
|
|
{
|
|
return $this->belongsTo(\App\Models\FewoLodging::class, 'lodging_id');
|
|
}
|
|
}
|