Reputation: 329
I want to make an href
link that should open an html file that is saved locally.
normally if its not locally I would make a new route that call the index
function in a controller that I would create and this index function would return a blade.
Now What would be the difference if I want to link a local file?
Upvotes: 0
Views: 825
Reputation: 1489
Yes, you can do it. But you have to put that html file in public folder
in your project.
Assume you put hello.html
in folder your_project/public/welcome
,
Then the link will be url('/welcome/hello.html')
No need route or controller
Upvotes: 1