18 lines
370 B
PHP
18 lines
370 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class CabelCategory extends Model
|
|
{
|
|
use HasFactory, SoftDeletes;
|
|
|
|
public function cabels()
|
|
{
|
|
return $this->hasMany(Cabel::class,'cabel_category_id','id')->withTrashed();
|
|
}
|
|
}
|