Fewos in CRM,
Fewo Clients Bookings create / edit / delelte via API in DB
This commit is contained in:
parent
aebfb0586a
commit
c0c2a1822c
55 changed files with 9787 additions and 1486 deletions
51
app/Models/FewoLodgingGroupImage.php
Normal file
51
app/Models/FewoLodgingGroupImage.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?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
|
||||
* @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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue