I noticed earlier that when I added parameters to my routes, this broke my views as it seemed to change the links to my CSS and JS files. After hours of trying to get the HTML package working in Laravel 5.1, I finally gave up and threw in the towel due to Composer issues.
I opted to just take the simple route and go back to linking them directly, however I am now struggling to get even this to work.
<link type="text/css" rel="stylesheet" href="{{ public_path() }}/assets/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="{{ public_path() }}/assets/css/metismenu.min.css">
<link type="text/css" rel="stylesheet" href="{{ public_path() }}/assets/css/sb-admin-2.css">
<link type="text/css" rel="stylesheet" href="{{ public_path() }}/assets/css/font-awesome.min.css">
<link type="text/css" rel="stylesheet" href="{{ public_path() }}/assets/css/datatables.bootstrap.css">
<link type="text/css" rel="stylesheet" href="{{ public_path() }}/assets/css/datatables.responsive.css">
Rather than linking to the local file, its appending the entire string to my base URL and trying to link to that which is obviously wrong.
Current Link:
http://domain.com/home/roster/laravel/public/assets/css/bootstrap.min.css
Correct Link:
http://domain.com/assets/css/bootstrap.min.css
Just linking to "/assets/css/bootstrap.min.css" works fine until I add Route parameters. What can I do to get these links working short of hard coding the entire URL?