for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Oddvalue\LinkBuilder\Contracts\Linkable;
if (! function_exists('get_link')) {
/**
* Convert a path to a URL.
*
* @param string $path
* @return string
*/
function get_link(Linkable $linkableModel, $options = [])
{
return $linkableModel->getLinkGenerator($options);
}
if (! function_exists('url')) {
function url($path)
return '/'.ltrim($path, '/');