$myArr = explode(',',Request::segment(4));
How about that?
Something like this:
Route::get('api/v1/users/{parameters}', function($parameters)
{
$parameters = explode(',', $parameters);
return $parameters;
});
Or use Request::segment
Route::get('api/v1/users/{parameters}', function($parameters)
{
$parameters = Request::segment(4);
$parameters = explode(',', $parameters);
return $parameters;
});
Edit: ah, too late :(
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community