Fixed a few inconsistencies in the API results (null vs empty string)

This commit is contained in:
snipe
2017-10-28 15:17:36 -07:00
parent 2244a4b3cf
commit 9687a78981
2 changed files with 4 additions and 4 deletions
@@ -256,7 +256,7 @@ class AssetsController extends Controller
*/
public function show($id)
{
if ($asset = Asset::withTrashed()->findOrFail($id)) {
if ($asset = Asset::with('assetstatus')->with('assignedTo')->withTrashed()->findOrFail($id)) {
$this->authorize('view', $asset);
return (new AssetsTransformer)->transformAsset($asset);
}