diff --git a/composer.json b/composer.json index e38bb59..a405db4 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": ">=7.0.0" + "php": ">=7.3.0" }, "autoload": { "psr-4": { diff --git a/src/Impersonate.php b/src/Impersonate.php index b2b6bb0..5d0b604 100644 --- a/src/Impersonate.php +++ b/src/Impersonate.php @@ -2,7 +2,7 @@ namespace Bpocallaghan\Impersonate; -use App\User; +use App\Models\User; class Impersonate { @@ -13,7 +13,7 @@ class Impersonate /** * Create a new Impersonate instance. */ - function __construct() + public function __construct() { $this->isActiveKey = config('impersonate.session')['is_active']; $this->originalUserKey = config('impersonate.session')['original_user']; diff --git a/src/ImpersonateController.php b/src/ImpersonateController.php index c64b407..6b5e940 100644 --- a/src/ImpersonateController.php +++ b/src/ImpersonateController.php @@ -2,9 +2,9 @@ namespace Bpocallaghan\Impersonate; -use App\User; -use Illuminate\Http\Request; use App\Http\Controllers\Controller; +use App\Models\User; +use Illuminate\Http\Request; class ImpersonateController extends Controller { @@ -43,4 +43,4 @@ protected function logout(Request $request) return back(); } -} \ No newline at end of file +} diff --git a/src/helpers.php b/src/helpers.php index 66c2fc7..95650f2 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,5 +1,7 @@