File manager - Edit - /var/www/html/ciosp/api/app/Models/VehicleModel.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 VehicleModel extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'name', 'vehicle_brand_id' ]; public function vehicleBrand() { return $this->belongsTo(VehicleBrand::class); } public function NotificationAuto() { return $this->hasOne(NotificationAuto::class); } public function TrafficNotification() { return $this->hasOne(TrafficNotification::class); } public function vehicleCollectionGuide() { return $this->hasOne(VehicleCollectionGuide::class); } public function serviceVehicle() { return $this->hasOne(ServiceVehicle::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings