Travel Guide Frontend Backend
This commit is contained in:
parent
e6cc042aee
commit
0857a34766
681 changed files with 6680 additions and 1689 deletions
53
app/Models/IQContentFaq.php
Normal file
53
app/Models/IQContentFaq.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class IQContentFaq
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $tree_node_id
|
||||
* @property int $faq_id
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
* @property AnswerQuestion $answer_question
|
||||
* @property IQContentTreeNode $i_q_content_tree_node
|
||||
* @package App\Models
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereTreeNodeId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereFaqId($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereUpdatedAt($value)
|
||||
*/
|
||||
class IQContentFaq extends Model
|
||||
{
|
||||
protected $connection = 'mysql_stern';
|
||||
|
||||
protected $table = 'i_q_content_faqs';
|
||||
|
||||
protected $fillable = [
|
||||
'tree_node_id',
|
||||
'faq_id'
|
||||
];
|
||||
|
||||
public function answer_question()
|
||||
{
|
||||
return $this->belongsTo(AnswerQuestion::class, 'faq_id');
|
||||
}
|
||||
|
||||
public function i_q_content_tree_node()
|
||||
{
|
||||
return $this->belongsTo(IQContentTreeNode::class, 'tree_node_id');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue