Refactor for livewire
This commit is contained in:
parent
843229d9b5
commit
a88ef592de
1 changed files with 2 additions and 4 deletions
|
|
@ -23,13 +23,11 @@ class PayNowDropdown extends Component
|
|||
|
||||
public $company;
|
||||
|
||||
public function mount(int $total)
|
||||
public function mount()
|
||||
{
|
||||
MultiDB::setDb($this->company->db);
|
||||
|
||||
$this->total = $total;
|
||||
|
||||
$this->methods = auth()->guard('contact')->user()->client->service()->getPaymentMethods($total);
|
||||
$this->methods = auth()->guard('contact')->user()->client->service()->getPaymentMethods($this->total);
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue