When I user this Route :
Route::get('home', function()
{
return View::make('index');
});
with URL:
localhost/laravel/public/home
It get the view and works well .
But when use this Route:
Route::get('home/{id}', function($id)
{
return View::make('index')->with('id', $id);
});
with URL:
localhost/laravel/public/home/10
It the view but doesn't work well that view come without any CSS, JS, .. etc
I can't define the ERROR here ?!
publicdirectory?<base href="http://localhost/laravel/public/">to the<head>section of your pages . Depending on how the path of your resources is defined this might fix the issue. However I still strongly suggest that you take the approach I suggested in my previous comments.