%PDF- %PDF-
| Direktori : /home2/rezakur1/dashboard.rezakurnia.com/dashboard-rezakurnia/app/Models/ |
| Current File : //home2/rezakur1/dashboard.rezakurnia.com/dashboard-rezakurnia/app/Models/ArticleTagRelations.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ArticleTagRelations extends Model
{
protected $table = 'article_tag_relations';
protected $fillable = [
'article_id',
'article_tag_id',
];
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
public function article()
{
return $this->belongsTo(Article::class, 'article_id');
}
public function tag()
{
return $this->belongsTo(ArticleTags::class, 'article_tag_id');
}
}