27 lines
484 B
PHP
27 lines
484 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class Note extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'note';
|
|
|
|
protected $fillable = [
|
|
'note',
|
|
'customer_id',
|
|
'service_id',
|
|
'user_id'
|
|
];
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class, 'user_id');
|
|
}
|
|
}
|