Current state
This commit is contained in:
24
app/Models/CategorySeo.php
Normal file
24
app/Models/CategorySeo.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class CategorySeo extends Model
|
||||
{
|
||||
protected $table = 'category_seo';
|
||||
protected $primaryKey = 'category_id';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'category_id','meta_title','meta_description',
|
||||
'meta_keywords','canonical_url'
|
||||
];
|
||||
|
||||
public function category(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user