You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating my Laravel version from 5.6.25 to 5.6.28, using array as a parameter on request()->is() doesn't work anymore. It shows the ff. error:
preg_quote() expects parameter 1 to be string, array given
I checked the file vendor/laravel/framework/src/Illuminate/Http/Request.php and saw that the function for "is" method has changed on the newer version.
I think its much easier to pass array on request()->is rather than doing multiple request()->is with a string parameter.
Steps To Reproduce:
Updated my Laravel version from 5.6.25 to 5.6.28, and using the ff. code doesn't work anymore:
if (request()->is(['pattern1', 'pattern2']))
The text was updated successfully, but these errors were encountered:
Description:
After updating my Laravel version from 5.6.25 to 5.6.28, using array as a parameter on request()->is() doesn't work anymore. It shows the ff. error:
I checked the file vendor/laravel/framework/src/Illuminate/Http/Request.php and saw that the function for "is" method has changed on the newer version.
I think its much easier to pass array on request()->is rather than doing multiple request()->is with a string parameter.
Steps To Reproduce:
Updated my Laravel version from 5.6.25 to 5.6.28, and using the ff. code doesn't work anymore:
The text was updated successfully, but these errors were encountered: