mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Log instead of echoing
This commit is contained in:
parent
3064b3f80e
commit
0a114c7daf
|
@ -19,7 +19,7 @@ class MigrateDenormedAssetLocations extends Migration
|
||||||
|
|
||||||
// Unassigned
|
// Unassigned
|
||||||
$rtd_assets = Asset::whereNull('assigned_to')->with('defaultLoc')->get();
|
$rtd_assets = Asset::whereNull('assigned_to')->with('defaultLoc')->get();
|
||||||
echo "\nUnasigned assets: ";
|
\Log::info('Unasigned assets: ');
|
||||||
foreach ($rtd_assets as $rtd_asset) {
|
foreach ($rtd_assets as $rtd_asset) {
|
||||||
\Log::info('Setting asset '.$rtd_asset->id.' to location: '.$rtd_asset->rtd_location_id." Because asset's default location is: ".$rtd_asset->rtd_location_id);
|
\Log::info('Setting asset '.$rtd_asset->id.' to location: '.$rtd_asset->rtd_location_id." Because asset's default location is: ".$rtd_asset->rtd_location_id);
|
||||||
$rtd_asset->location_id=$rtd_asset->rtd_location_id;
|
$rtd_asset->location_id=$rtd_asset->rtd_location_id;
|
||||||
|
|
Loading…
Reference in a new issue