18 lines
364 B
PHP
18 lines
364 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CategoryMaterial extends Model
|
|
{
|
|
public $timestamps = false;
|
|
protected $table = 'category_material';
|
|
public function category(){
|
|
return $this->belongsTo(Category::class);
|
|
}
|
|
public function material(){
|
|
return $this->belongsTo(Material::class);
|
|
}
|
|
}
|