FrittenKeeZ / laravel-vouchers

Voucher system for Laravel 9+
MIT License
55 stars 15 forks source link

TypeError make() must be of the type array, null given #4

Closed martianatwork closed 4 years ago

martianatwork commented 4 years ago

TypeError: Argument 1 passed to Illuminate/Validation/Factory::make() must be of the type array, null given, called in /vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 239

Getting this error on createVouchers or Vouchers::create()

FrittenKeeZ commented 4 years ago

Hey @martianatwork,

Can you show me your code please? What version are you using?

martianatwork commented 4 years ago

@FrittenKeeZ
Package Version: 0.1.8 Laravel Version: 5.8.36 Tinker Version: 1.0

I'm using laravel tinker and running console command: Vouchers::create() or $user->createVouchers()

I have included HasVouchers trait into User Model.

FrittenKeeZ commented 4 years ago

@martianatwork can you paste in the stack trace from the error log?

martianatwork commented 4 years ago

@FrittenKeeZ Thats the problem right now, I dont get any stack trace, nothing in logs either.

I'm not in my office right now, I will do some digging tomorrow and get back to you

FrittenKeeZ commented 4 years ago

@martianatwork otherwise see if you can get more verbose errors in Tinker with this: https://softonsofa.com/tinker-like-a-boss-in-psysh/

FrittenKeeZ commented 4 years ago

Closing this as there hasn't been any additional information in a long time. Feel free to open a new issue if the problem occurs again.