File manager - Edit - /var/www/html/ciosp/api/app/Models/Vehicle.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Vehicle extends Model { use HasFactory; protected $table = 'vehicles'; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'vehicle_type_id', 'vehicle_model_id', 'plate', 'renavam' ]; public function vehicleType() { return $this->belongsTo(VehicleType::class); } public function vehicleModel() { return $this->belongsTo(VehicleModel::class); } public function vehicleEvaluation() { return $this->hasMany(VehicleEvaluation::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings