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 You can also call link assistants: url () For example, like this:
& lt; {{$ Select_sector}} / {{$ selected_sector}} "> Remove & lt; / A & gt;
{{link_to ('safesign_doc_delete /'. $ File. '/'. $ Sector_name '/'. $ Selected_sector, 'delete')}}
Comments
Post a Comment