54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class CategoryFooterCode
|
|
*
|
|
* @property int $footer_code_id
|
|
* @property int $category_id
|
|
* @property Category $category
|
|
* @property FooterCode $footer_code
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode whereCategoryId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode whereFooterCodeId($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class CategoryFooterCode extends Model
|
|
{
|
|
protected $table = 'category_footer_code';
|
|
|
|
public $incrementing = false;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'footer_code_id' => 'int',
|
|
'category_id' => 'int',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'footer_code_id',
|
|
'category_id',
|
|
];
|
|
|
|
public function category()
|
|
{
|
|
return $this->belongsTo(Category::class);
|
|
}
|
|
|
|
public function footer_code()
|
|
{
|
|
return $this->belongsTo(FooterCode::class);
|
|
}
|
|
}
|