From 358d65d7cb771a67846726b7194f3e0a362f744b Mon Sep 17 00:00:00 2001 From: Jeff Greco Date: Mon, 17 Jul 2023 10:04:53 -0400 Subject: [PATCH] Fix namespace, remove factory --- README.md | 2 +- database/factories/ModelFactory.php | 19 ------------------- phpunit.xml.dist | 2 +- .../views/livewire/sanctum-tokens.blade.php | 3 +-- src/Traits/TwoFactorAuthenticatable.php | 2 +- tests/Pest.php | 2 +- tests/TestCase.php | 6 +++--- 7 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 database/factories/ModelFactory.php diff --git a/README.md b/README.md index 7207606..d9b2d0e 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,7 @@ BreezyCore::make() 1. Add `Jeffgreco13\FilamentBreezy\Traits\TwoFactorAuthenticatable` to your Authenticatable model: ```php -use JeffGreco13\FilamentBreezy\Traits\TwoFactorAuthenticatable; +use Jeffgreco13\FilamentBreezy\Traits\TwoFactorAuthenticatable; class User extends Authenticatable { diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php deleted file mode 100644 index e369b5b..0000000 --- a/database/factories/ModelFactory.php +++ /dev/null @@ -1,19 +0,0 @@ - - + tests diff --git a/resources/views/livewire/sanctum-tokens.blade.php b/resources/views/livewire/sanctum-tokens.blade.php index 81c4328..9ccefb7 100644 --- a/resources/views/livewire/sanctum-tokens.blade.php +++ b/resources/views/livewire/sanctum-tokens.blade.php @@ -2,8 +2,7 @@ @if($plainTextToken)

{{ __('filament-breezy::default.profile.sanctum.create.message') }}

- config('filament.dark_mode')]) name="plain_text_token" value="{{$plainTextToken}}" /> +
diff --git a/src/Traits/TwoFactorAuthenticatable.php b/src/Traits/TwoFactorAuthenticatable.php index e0e8fdf..06b70b3 100644 --- a/src/Traits/TwoFactorAuthenticatable.php +++ b/src/Traits/TwoFactorAuthenticatable.php @@ -1,6 +1,6 @@ in(__DIR__); diff --git a/tests/TestCase.php b/tests/TestCase.php index c9e25ed..f94af84 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,9 +1,9 @@ "JeffGreco13\\FilamentBreezy\\Database\\Factories\\" . + ) => "Jeffgreco13\\FilamentBreezy\\Database\\Factories\\" . class_basename($modelName) . "Factory" );