Reputation: 31225
Laravel Input helper has
Input::has('debug')
My problem is that I often use query parameter without the value such has http://example.com?debug
The problem is that Input::has('debug') will return false in this case because there is no value. ie. debug=1
So I end up having to use isset($_GET['debug'])
.
Is there a laravel way to check whether the input isset?
Upvotes: 4
Views: 11741