I have a table on my database in coupons_code with randomly generated chars.
I want users to input a coupon code when registering, then the code should be verified that it matches a code on the coupons table before users registration is successful.
how do I go about it please.. I'm new to laravel and php,so please be as precise as possible.
Thanks Alot, it's the 3rd step I'm stuck at, the controller part...
For the for, I have users_coupon and the coupons are stored in coupons _code....so how do I make the register controller check if the input from the form matches a value in coupons_code before making a successful registration.
db field name in coupons_code table that has the value you're checking against is fieldName
Since you're new to all of this, I'd highly urge you to watch this series before starting to play with laravel, or you'll be asking a ton of questions. Also read the entire user guide from cover to cover. https://laracasts.com/series/laravel-from-scratch-2018