Update all locations call type

Update all locations call type
This commit is contained in:
cp6 2022-05-09 15:39:29 +10:00
parent 1251fae0df
commit 7b37eba517
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ class LocationsController extends Controller
{
public function index()
{
$locations = Locations::all();
$locations = Locations::allLocations();
return view('locations.index', compact(['locations']));
}

View File

@ -29,7 +29,7 @@ class ResellerController extends Controller
public function create()
{
$Providers = Providers::allProviders();
$Locations = Locations::all();
$Locations = Locations::allLocations();
return view('reseller.create', compact(['Providers', 'Locations']));
}

View File

@ -82,7 +82,7 @@ class ServerController extends Controller
public function create()
{
$Providers = Providers::allProviders();
$Locations = Locations::all();
$Locations = Locations::allLocations();
$Os = OS::allOS();
return view('servers.create', compact(['Providers', 'Locations', 'Os']));
}

View File

@ -29,7 +29,7 @@ class SharedController extends Controller
public function create()
{
$Providers = Providers::allProviders();
$Locations = Locations::all();
$Locations = Locations::allLocations();
return view('shared.create', compact(['Providers', 'Locations']));
}