Your question has been answered at stackoverflow. You should check if count!==1 and then do one of the following:
Redirect or App::abort() or Exit or Any other way that stops the execution of the request
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.