File manager - Edit - /home/autoph/public_html/projects/aha-api/app/Models/Dealership.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use OwenIt\Auditing\Contracts\Auditable; use OwenIt\Auditing\Auditable as AuditableTrait; class Dealership extends Model implements Auditable { use HasFactory, SoftDeletes, AuditableTrait; /** * The attributes that are NOT mass assignable. * */ protected $guarded = [ 'deleted_at', ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; /** * Get the default timeslot associated with the Dealership */ public function default_service_timeslot() { return $this->hasOne(DefaultServiceTimeslot::class, 'dealership_id', 'id')->with(['details']); } /** * Get the brand associated with the Dealership */ public function brand() { return $this->hasOne(Brand::class, 'id', 'brand_id'); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings