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