This is not the proper way to handle dynamic route paths in laravel.
What you need to do is remove that nasty for loop all together, then you need to pass a dynamic value as the 3rd argument to this Route.
Route::get('/projects/oop/{id}, 'ProjectsController@oop');
Now, you need to go to your controllers directory and make a controller called:
class ProjectsController extends BaseController { function oop($id){ return View::make('projects.oop.'.$id); } }
Now your route will properly pass the request to the ProjectsController class, which will then imeplement the oop function and pass the {id} from the Route to the function as an argument.
PHPis notJavascript. You cannot concatenate strings using+inPHP.