%PDF- %PDF-
| Direktori : /home2/rezakur1/dashboard.rezakurnia.com/dashboard-rezakurnia/app/Models/ |
| Current File : //home2/rezakur1/dashboard.rezakurnia.com/dashboard-rezakurnia/app/Models/ArticleCategories.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ArticleCategories extends Model
{
protected $table = 'article_categories';
protected $primaryKey = 'article_category_id';
protected $fillable = [
'name',
'slug',
'description',
'meta_title',
'meta_description',
'view_count',
'total_articles',
];
protected $casts = [
'view_count' => 'integer',
'total_articles' => 'integer',
];
/*
|--------------------------------------------------------------------------
| RELATIONSHIP
|--------------------------------------------------------------------------
*/
// public function articles()
// {
// return $this->hasMany(Article::class, 'article_category_id');
// }
}