find and setup db by company key in webhook request

This commit is contained in:
Benjamin Beganović 2020-12-21 12:19:48 +01:00
parent 950a057496
commit 940c5c77f3

View File

@ -13,6 +13,7 @@
namespace App\Http\Requests\Payments;
use App\Http\Requests\Request;
use App\Libraries\MultiDB;
use App\Models\Client;
use App\Models\Company;
use App\Models\CompanyGateway;
@ -26,6 +27,8 @@ class PaymentWebhookRequest extends Request
public function authorize()
{
MultiDB::findAndSetDbByCompanyKey($this->getCompany()->company_key);
return true;
}