File manager - Edit - /home/autoph/public_html/projects/aha-api/app/Models/PreferredDrink.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use OwenIt\Auditing\Contracts\Auditable; use Illuminate\Database\Eloquent\SoftDeletes; use OwenIt\Auditing\Auditable as AuditableTrait; use Illuminate\Database\Eloquent\Factories\HasFactory; class PreferredDrink extends Model implements Auditable { use HasFactory, AuditableTrait; protected $table = 'aha_preferred_drinks'; /** * The attributes that are NOT mass assignable. * */ protected $guarded = [ ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ ]; public function customer() { return $this->belongsTo(Customer::class, 'aha_user_id'); } public function vehicle() { return $this->belongsTo(Vehicle::class, 'vehicle_plate'); } public function drinkAndBeverage() { return $this->belongsTo(DrinkAndBeverage::class, 'drink_id'); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings