<?php
// 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') }}
<?php
// 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') }}