Use url() helper over URL::to

This commit is contained in:
snipe
2016-12-15 16:41:36 -08:00
parent b7a2c4c26d
commit aab0933856
46 changed files with 123 additions and 120 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ class LocationsController extends Controller
foreach ($assets as $asset) {
$rows[] = array(
'name' => (string)link_to(\URL::to('/').'/hardware/'.$asset->id.'/view', e($asset->showAssetName())),
'name' => (string)link_to_route('hardware.show', e($asset->showAssetName()), ['hardware' => $asset->id]),
'asset_tag' => e($asset->asset_tag),
'serial' => e($asset->serial),
'model' => e($asset->model->name),