✏️ Edit: DMReview.php
Path:
/home/thiqat5/tmphone.thiqatech.com/tm/app/Model/DMReview.php
Size: 667 B · Modified: 2021-11-17 23:00:14 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php namespace App\Model; use App\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class DMReview extends Model { protected $casts = [ 'delivery_man_id' => 'integer', 'order_id' => 'integer', 'user_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime' ]; public function customer() { return $this->belongsTo(User::class,'user_id'); } public function order() { return $this->belongsTo(Order::class); } public function delivery_man() { return $this->belongsTo(DeliveryMan::class,'delivery_man_id'); } }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF