I already have a working application and there is a PhoneController.php in controllers folder.
Now I want to add an api for my application so I added api\v1\PhoneController.php
But when I use routing this doesnt work as I want to:
Route::group(array('prefix' => 'api/v1'), function()
{
Route::get('test', 'PhoneController@index');
});
I tried adding 'namespace' => 'api\v1' or api\v1\PhoneController@index but this always picks the wrong PhoneController.
Are there anyways to get it work? I could rename the PhoneController.php but this could confuse me in future, so I am trying to avoid this solution