File manager - Edit - /var/www/html/ciosp/api/app/Models/ServiceVehicle.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ServiceVehicle extends Model { use HasFactory; protected $table = 'service_vehicles'; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'vehicle_brand_id', 'vehicle_model_id', 'vehicle_plate', 'number', 'module_id' ]; public function vehicleBrand() { return $this->belongsTo(VehicleBrand::class); } public function vehicleModel() { return $this->belongsTo(VehicleModel::class); } public function serviceVehicleChecklist() { return $this->hasMany(ServiceVehicleChecklist::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings