public function postGenerate() { if ($pins = Refillcoupons::generate(Input::all())) { $count = count($pins); $this->notifySuccess("Generated {$count} Voucher(s)."); } else { $this->notifyError("Voucher Generation Failed."); } return Redirect::route(self::HOME); }