@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\Vouchers\Traits; |
4 | 4 | |
5 | -use BeyondCode\Vouchers\Models\Voucher; |
|
6 | 5 | use BeyondCode\Vouchers\Facades\Vouchers; |
6 | +use BeyondCode\Vouchers\Models\Voucher; |
|
7 | 7 | |
8 | 8 | trait HasVouchers |
9 | 9 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\Vouchers\Rules; |
4 | 4 | |
5 | -use Vouchers; |
|
6 | -use Illuminate\Contracts\Validation\Rule; |
|
5 | +use BeyondCode\Vouchers\Exceptions\VoucherAlreadyRedeemed; |
|
7 | 6 | use BeyondCode\Vouchers\Exceptions\VoucherExpired; |
8 | 7 | use BeyondCode\Vouchers\Exceptions\VoucherIsInvalid; |
9 | -use BeyondCode\Vouchers\Exceptions\VoucherAlreadyRedeemed; |
|
8 | +use Illuminate\Contracts\Validation\Rule; |
|
9 | +use Vouchers; |
|
10 | 10 | |
11 | 11 | class Voucher implements Rule |
12 | 12 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\Vouchers\Traits; |
4 | 4 | |
5 | -use BeyondCode\Vouchers\Facades\Vouchers; |
|
6 | -use BeyondCode\Vouchers\Models\Voucher; |
|
7 | 5 | use BeyondCode\Vouchers\Events\VoucherRedeemed; |
6 | +use BeyondCode\Vouchers\Exceptions\VoucherAlreadyRedeemed; |
|
8 | 7 | use BeyondCode\Vouchers\Exceptions\VoucherExpired; |
9 | 8 | use BeyondCode\Vouchers\Exceptions\VoucherIsInvalid; |
10 | -use BeyondCode\Vouchers\Exceptions\VoucherAlreadyRedeemed; |
|
9 | +use BeyondCode\Vouchers\Facades\Vouchers; |
|
10 | +use BeyondCode\Vouchers\Models\Voucher; |
|
11 | 11 | |
12 | 12 | trait CanRedeemVouchers |
13 | 13 | { |