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
49
app/Models/FewoLodgingImage.php
Normal file
49
app/Models/FewoLodgingImage.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?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
|
||||
* @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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue