PATH:
home
/
centosnipponia
/
public_html
/
ts
/
app
/
Models
<?php namespace App\Models; use App\Models\TechnicalCase; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; class Vin extends Model { use HasFactory; protected $table = 'vins'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'vin', 'distance', 'case_id', ]; public function case() { return $this->belongsTo(TechnicalCase::class,'case_id','id'); // (model, foreign_key, other_key), maybe not needed here } public function as_array(){ return [$this->vin,$this->distance]; } }
[+]
..
[-] ReadState.php
[edit]
[-] Message.php
[edit]
[-] motos_vin.php
[edit]
[-] vin_to_case.php
[edit]
[-] MotorModel.php
[edit]
[-] TechnicalDirective.php
[edit]
[-] TechnicalReport.php
[edit]
[-] CaseStatus.php
[edit]
[-] TechnicalCase.php
[edit]
[-] Vin.php
[edit]
[-] Country.php
[edit]
[-] User.php
[edit]
[-] .htaccess.disabled
[edit]