php - Laravel - Dynamic path -


Sorry in advance if this is a noob question

I have a delete function in Laravel, I have problems with the route and the returning variable is required when the website is hosted externally

The URL is currently coded like this

  & Lt; A href = "http: // localhost: 8888 / Laravel / test / public / safesign_doc_delete / {{$ file}} / {{$ sector_name}} / {{$ selected_sector}}" & gt; Remove & lt; / A & gt; & Lt; / TD & gt;  

I think this URL should be dynamic. I have tried the public_path () function, but I have no strongness.

  & lt; A href = "{{public_path ()}} / safesign_doc_delete / {{$ file}} / {{$ sector_name}} / {{$ selected_sector}}" & gt; Remove & lt; / A & gt; & Lt; / TD & gt;  

thanks

using the url () For example, like this:

  & lt; {{$ Select_sector}} / {{$ selected_sector}} "> Remove & lt; / A & gt;  

You can also call link assistants:

  {{link_to ('safesign_doc_delete /'. $ File. '/'. $ Sector_name '/'. $ Selected_sector, 'delete')}}  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -