Improve trait name

This commit is contained in:
Marcus Moore 2024-02-27 12:06:29 -08:00
parent 0e460baf82
commit a5516e3511
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,7 @@ namespace App\Http\Controllers\Api;
use App\Events\CheckoutableCheckedIn;
use App\Http\Requests\StoreAssetRequest;
use App\Http\Traits\MigratesLegacyLocations;
use App\Http\Traits\MigratesLegacyAssetLocations;
use App\Models\CheckoutAcceptance;
use App\Models\LicenseSeat;
use Illuminate\Database\Eloquent\Builder;
@ -49,7 +49,7 @@ use Route;
*/
class AssetsController extends Controller
{
use MigratesLegacyLocations;
use MigratesLegacyAssetLocations;
/**
* Returns JSON listing of all assets

View file

@ -6,7 +6,7 @@ use App\Events\CheckoutableCheckedIn;
use App\Helpers\Helper;
use App\Http\Controllers\Controller;
use App\Http\Requests\AssetCheckinRequest;
use App\Http\Traits\MigratesLegacyLocations;
use App\Http\Traits\MigratesLegacyAssetLocations;
use App\Models\Asset;
use App\Models\CheckoutAcceptance;
use App\Models\LicenseSeat;
@ -17,7 +17,7 @@ use Illuminate\Support\Facades\View;
class AssetCheckinController extends Controller
{
use MigratesLegacyLocations;
use MigratesLegacyAssetLocations;
/**
* Returns a view that presents a form to check an asset back into inventory.

View file

@ -4,7 +4,7 @@ namespace App\Http\Traits;
use App\Models\Asset;
trait MigratesLegacyLocations
trait MigratesLegacyAssetLocations
{
/**
* This is just meant to correct legacy issues where some user data would have 0