Skip to content

Commit

Permalink
Use facade instead of ServiceConfig in trait
Browse files Browse the repository at this point in the history
  • Loading branch information
r-kujawa committed Jul 1, 2024
1 parent 4e02d58 commit edd668b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/Billable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Payavel\Checkout\Traits;

use Payavel\Checkout\Facades\Checkout;
use Payavel\Checkout\Models\Wallet;
use Payavel\Orchestration\ServiceConfig;

trait Billable
{
Expand All @@ -14,6 +14,6 @@ trait Billable
*/
public function wallets()
{
return $this->morphMany(ServiceConfig::find('checkout')->get('models.' . Wallet::class, Wallet::class), 'billable');
return $this->morphMany(Checkout::config('models.' . Wallet::class, Wallet::class), 'billable');
}
}

0 comments on commit edd668b

Please sign in to comment.