Files
cleaning-company/app/Models/Service.php
Владимир ae5ab2554b commit 12.01
2026-01-12 14:25:15 +00:00

25 lines
458 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Service extends Model
{
use HasFactory;
protected $fillable = [
'name',
'description',
'duration_minutes',
'price',
'is_active'
];
// Связь с бронированиями
public function bookings()
{
return $this->hasMany(Booking::class);
}
}