I had this piece of route in a project in Laravel 3:
Route::get(array('/Home', '/'.rawurlencode ('خانه')), function()
{
return View::make('home.index');
});
It was working correctly, till I decided to migrate it to Laravel 4. Now in Laravel 4 I get this error:
preg_match_all() expects parameter 2 to be string, array given
Are there any other way to set multiple patterns for Laravel 4 route?