Version 1.0.0
This commit is contained in:
22
app/Models/CategoryArticle.php
Normal file
22
app/Models/CategoryArticle.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\Pivot;
|
||||
|
||||
class CategoryArticle extends Pivot
|
||||
{
|
||||
protected $table = 'category_article';
|
||||
|
||||
protected $fillable = [
|
||||
'category_id',
|
||||
'article_id',
|
||||
'sort_order',
|
||||
];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
use HasFactory;
|
||||
}
|
||||
Reference in New Issue
Block a user