/home/ssmkngbx/domains/royaleg.co/public_html/platform/plugins/real-estate/src/Providers/HookServiceProvider.php
app(TransactionInterface::class)->createOrUpdate([
'user_id' => 0,
'account_id' => $payment->customer_id,
'credits' => $package->number_of_listings,
'payment_id' => $payment ? $payment->id : null,
]);
}
}, 123, 2);
}
if (defined('PAYMENT_FILTER_PAYMENT_DATA')) {
add_filter(PAYMENT_FILTER_PAYMENT_DATA, function (array $data, Request $request) {
$orderIds = [session('subscribed_packaged_id')];
$package = $this->app->make(PackageInterface::class)
->findById(Arr::first($orderIds));
$products = [
[
'id' => $package->id,
'name' => $package->name,
'price' => $package->price,
'price_per_order' => $package->price,
'qty' => 1,
],
];
$account = auth('account')->user();
$address = [
'name' => $account->name,
'email' => $account->email,
'phone' => $account->phone,
'country' => null,
'state' => null,
'city' => null,
'address' => null,
'zip' => null,
];
Arguments
"Attempt to read property "id" on null"
What I have tried:
help me to fix this error,
I don't how to fix it