1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

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() public function index()
{ {
$locations = Locations::all(); $locations = Locations::allLocations();
return view('locations.index', compact(['locations'])); return view('locations.index', compact(['locations']));
} }

View File

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

View File

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

View File

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