Created
August 7, 2014 20:12
-
-
Save ifkas/192114b8307d722dd601 to your computer and use it in GitHub Desktop.
Laravel - Go to previous page link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Insert a link to go back to the previous page. | |
function link_back($body = 'Go Back') | |
{ | |
return link_to(URL::previous(), $body); | |
} | |
// usage in your view | |
{{ link_back('Cancel') }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment