File manager - Edit - /var/www/html/spdc/api/app/Models/TransportationSupply.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Concerns\HasUuids; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Factories\HasFactory; class TransportationSupply extends Model { use HasFactory; use HasUuids; protected $fillable = [ 'hour', 'odometer', 'liters', 'document_number', 'file', 'transportation_id', 'bdt_id', ]; protected $casts = [ 'hour' => 'datetime', 'odometer' => 'float', 'liters' => 'float', ]; /** * Get the transportation that owns the TransportationSupply * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function transportation(): BelongsTo { return $this->belongsTo(Transportation::class); } /** * Get the bdt that owns the TransportationSupply * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function bdt(): BelongsTo { return $this->belongsTo(BDT::class, 'bdt_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings