Vue Polling - Code sycn with fixes from Shipping Portal (dillon/51-vue-polling-experimental-1)

This commit is contained in:
Dillon Ngo
2023-12-18 17:21:57 +08:00
parent bf9b00c85f
commit 5fd242b424
3 changed files with 13 additions and 27 deletions
+8
View File
@@ -16,6 +16,14 @@ use Illuminate\Support\Facades\Log;
class BookingResource extends JsonResource
{
private $userInfo;
public function __construct($resource, $userInfo = null)
{
parent::__construct($resource);
$this->userInfo = $userInfo ?? ($resource->userInfo ?? null);
}
/**
* Transform the resource into an array.
*