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