coursework tasks 1 to 10
This commit is contained in:
@@ -2,9 +2,24 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Services extends Model
|
||||
class Services extends Model // услуги ĸлининга
|
||||
{
|
||||
//
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'durationminutes',
|
||||
'price',
|
||||
'isactive',
|
||||
];
|
||||
|
||||
// Простая связь с bookings, если нужно
|
||||
public function bookings()
|
||||
{
|
||||
return $this->hasMany(Booking::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user