I've been working on a web application through Laravel in Windows (using Laragon ). I am new to using this framework and I have found an inconvenience:
When I use Routes as for example:
Route::get('/', 'PagesController@home');
It's all good though, if I do the following:
Route::get('casos/{nombre?}', 'PagesController@caso');
When updating the web in the browser, I notice that all my URIs of my scripts , css and even images that I use in the web view, change, before a folder that receives by name: casos/
.
In the same way it happens when doing it this way:
Route::group(['prefix'=>'admin','middlewere'=> 'auth'],function(){
Route::get('donantes','Administrador\CasosController@home');
});
If I create a route in this way, on the web, to all my links css , js , images, etc. the prefix admin/
is prefixed to it.
How can I solve it?