'integer', 'vendor_id' => 'integer', 'deliveryman_id' => 'integer', 'admin_id' => 'integer' ]; public function user() { return $this->belongsTo(User::class, 'user_id'); } public function vendor() { return $this->belongsTo(Vendor::class, 'vendor_id'); } public function delivery_man() { return $this->belongsTo(DeliveryMan::class, 'deliveryman_id'); } public function admin() { return $this->belongsTo(Admin::class, 'admin_id'); } }