Skip to content

Commit bf155ce

Browse files
committed
Rename to model
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
1 parent 8635b0f commit bf155ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/*
1111
* Model to use
1212
*/
13-
'implementation' => BeyondCode\Vouchers\Models\Voucher::class,
13+
'model' => BeyondCode\Vouchers\Models\Voucher::class,
1414

1515
/*
1616
* Database pivot table name for vouchers and users relation

src/Traits/HasVouchers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait HasVouchers
1414
*/
1515
public function vouchers()
1616
{
17-
return $this->morphMany(config('vouchers.implementation', Voucher::class), 'model');
17+
return $this->morphMany(config('vouchers.model', Voucher::class), 'model');
1818
}
1919

2020
/**

src/Vouchers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Vouchers
1717
public function __construct(VoucherGenerator $generator)
1818
{
1919
$this->generator = $generator;
20-
$this->voucherModel = app(config('vouchers.implementation', Voucher::class));
20+
$this->voucherModel = app(config('vouchers.model', Voucher::class));
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)