X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/platform/plugins/real-estate/src/Models
home
/
gfecatvj
/
sites
/
restate
/
platform
/
plugins
/
real-estate
/
src
/
Models
/
📁
..
📄
Category.php
(594 B)
📄
Consult.php
(1003 B)
📄
Currency.php
(457 B)
📄
Feature.php
(889 B)
📄
Investor.php
(554 B)
📄
Project.php
(3.11 KB)
📄
Property.php
(4.09 KB)
Editing: Feature.php
<?php namespace Botble\RealEstate\Models; use Botble\Base\Models\BaseModel; use Illuminate\Database\Eloquent\Relations\BelongsToMany; class Feature extends BaseModel { /** * The database table used by the model. * * @var string */ protected $table = 're_features'; /** * @var bool disable timestamp */ public $timestamps = false; /** * @var array */ protected $fillable = [ 'name', ]; /** * @return BelongsToMany */ public function properties(): BelongsToMany { return $this->belongsToMany(Property::class, 're_property_features', 'feature_id', 'property_id'); } /** * @return BelongsToMany */ public function projects(): BelongsToMany { return $this->belongsToMany(Project::class, 're_project_features', 'feature_id', 'project_id'); } }
Upload File
Create Folder