19 lines
331 B
PHP
19 lines
331 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Service extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public function obtaineds()
|
|
{
|
|
return $this->belongsToMany(Obtained::class, 'service_obtained');
|
|
}
|
|
}
|