File manager - Edit - /var/www/html/ciosp/api/app/Models/VehicleEvaluation.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; class VehicleEvaluation extends Model { use HasFactory; public static $picturePath = 'pictures_vehicle_evaluation/'; protected $table = 'vehicle_evaluation'; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'evaluation_number', 'vehicle_part_note_id', 'picture', 'vehicle_id', 'vehicle_evaluation_type_id', 'vehicle_part_id', 'name' ]; public function vehiclePartNote() { return $this->belongsTo(VehiclePartNote::class); } public function vehicle() { return $this->belongsTo(Vehicle::class); } public function vehicleEvaluationType() { return $this->belongsTo(VehicleEvaluationType::class, 'vehicle_evaluation_type_id'); } public function vehiclePart() { return $this->belongsTo(VehiclePart::class, 'vehicle_part_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings