I'd suggest looking into relative vs absolute paths.
This is a relative path:
<script type="text/javascript" src="public/js/jquery.slidereveal.min.js"></script>
What you want is an absolute path (notice that it starts with a forward slash):
<script type="text/javascript" src="/public/js/jquery.slidereveal.min.js"></script>
Next, the public
folder should be your server's document root. If it is, you should be able to drop the public
and just reference it like this:
<script type="text/javascript" src="/js/jquery.slidereveal.min.js"></script>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community