Current File : //proc/thread-self/root/proc/self/root/home/tradevaly/www/app/Models/Cwp.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Cwp extends Model
{
    use HasFactory;
    protected $fillable = ['category_id','sorting'];
    
     public function category()
    {
        return $this->belongsTo(Category::class, 'category_id');
    }
}