first commit
This commit is contained in:
36
app/Models/PropertyContent.php
Normal file
36
app/Models/PropertyContent.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class PropertyContent extends BaseModel
|
||||
{
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'property_content';
|
||||
protected $appends = [];
|
||||
|
||||
const CREATED_AT = 'created_at';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
|
||||
protected $dateFormat = 'U';
|
||||
protected $guarded = [];
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [];
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function PropertyContentCategories()
|
||||
{
|
||||
return $this->hasMany('App\Models\PropertyContentCategory','id');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user