diff --git a/.travis.yml b/.travis.yml index 23414cb17e..879eac1ea8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,8 @@ services: php: - 7.1.3 - 7.1.4 - - 7.2 + - 7.2 + - 7.3.0 # execute any number of scripts before the test run, custom env's are available as variables diff --git a/app/Http/Controllers/CompaniesController.php b/app/Http/Controllers/CompaniesController.php index 1e6a8473d3..fa6df0b1f6 100644 --- a/app/Http/Controllers/CompaniesController.php +++ b/app/Http/Controllers/CompaniesController.php @@ -29,7 +29,7 @@ final class CompaniesController extends Controller { $this->authorize('view', Company::class); - return view('companies/index')->with('companies', Company::all()); + return view('companies/index'); } /** diff --git a/app/Http/Controllers/DepreciationsController.php b/app/Http/Controllers/DepreciationsController.php index 86b9e895e6..c2b205ecb2 100755 --- a/app/Http/Controllers/DepreciationsController.php +++ b/app/Http/Controllers/DepreciationsController.php @@ -28,7 +28,7 @@ class DepreciationsController extends Controller $this->authorize('view', Depreciation::class); // Show the page - return view('depreciations/index', compact('depreciations')); + return view('depreciations/index'); } diff --git a/app/Http/Controllers/GroupsController.php b/app/Http/Controllers/GroupsController.php index 8836fb4086..3dcb660b14 100755 --- a/app/Http/Controllers/GroupsController.php +++ b/app/Http/Controllers/GroupsController.php @@ -25,7 +25,7 @@ class GroupsController extends Controller public function index() { // Show the page - return view('groups/index', compact('groups')); + return view('groups/index'); } /** diff --git a/app/Http/Controllers/LocationsController.php b/app/Http/Controllers/LocationsController.php index 9314ede8b6..8d826d6b04 100755 --- a/app/Http/Controllers/LocationsController.php +++ b/app/Http/Controllers/LocationsController.php @@ -31,10 +31,8 @@ class LocationsController extends Controller { // Grab all the locations $this->authorize('view', Location::class); - $locations = Location::orderBy('created_at', 'DESC')->with('parent', 'assets', 'assignedassets')->get(); - // Show the page - return view('locations/index', compact('locations')); + return view('locations/index'); } diff --git a/app/Http/Controllers/ManufacturersController.php b/app/Http/Controllers/ManufacturersController.php index c99ac10d95..928f89fb66 100755 --- a/app/Http/Controllers/ManufacturersController.php +++ b/app/Http/Controllers/ManufacturersController.php @@ -30,7 +30,7 @@ class ManufacturersController extends Controller public function index() { $this->authorize('index', Manufacturer::class); - return view('manufacturers/index', compact('manufacturers')); + return view('manufacturers/index'); } diff --git a/app/Http/Controllers/StatuslabelsController.php b/app/Http/Controllers/StatuslabelsController.php index 27de5aa3ab..7908d8865b 100755 --- a/app/Http/Controllers/StatuslabelsController.php +++ b/app/Http/Controllers/StatuslabelsController.php @@ -25,7 +25,7 @@ class StatuslabelsController extends Controller public function index() { $this->authorize('view', Statuslabel::class); - return view('statuslabels.index', compact('statuslabels')); + return view('statuslabels.index'); } public function show($id)