%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/dashboard.rezakurnia.com/dashboard-rezakurnia/app/Models/
Upload File :
Create Path :
Current File : /home2/rezakur1/dashboard.rezakurnia.com/dashboard-rezakurnia/app/Models/Portfolios.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


class Portfolios extends Model
{
    protected $primaryKey = 'portfolio_id';
    protected $fillable = ['title', 'slug', 'description', 'image', 'project_url', 'github_url', 'portfolio_category_id', 'view_count', 'is_published', 'is_featured', 'is_archived', 'is_deleted', 'is_trashed', 'published_at', 'author_id'];


    public function categoryPortfolio()

    {
        return $this->belongsTo(PortfolioCategories::class, 'portfolio_category_id');
    }

    public function author()
    {
        return $this->belongsTo(User::class, 'author_id');
    }
}

Zerion Mini Shell 1.0