Skip to content

Commit

Permalink
Merge pull request #177 from jeffgreco13/2.x-dev
Browse files Browse the repository at this point in the history
Fix namespace, remove factory
  • Loading branch information
jeffgreco13 authored Jul 20, 2023
2 parents f8c0658 + 358d65d commit 495ed71
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
19 changes: 0 additions & 19 deletions database/factories/ModelFactory.php

This file was deleted.

2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
verbose="true"
>
<testsuites>
<testsuite name="JeffGreco13 Test Suite">
<testsuite name="Jeffgreco13 Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
3 changes: 1 addition & 2 deletions resources/views/livewire/sanctum-tokens.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
@if($plainTextToken)
<div class="space-y-2 bg-warning-500">
<p class="text-sm">{{ __('filament-breezy::default.profile.sanctum.create.message') }}</p>
<input type="text" disabled @class(['w-full py-1 px-3 rounded-lg bg-gray-100 border-gray-200',' dark:bg-gray-900
dark:border-gray-700'=>config('filament.dark_mode')]) name="plain_text_token" value="{{$plainTextToken}}" />
<input type="text" disabled @class(['w-full py-1 px-3 rounded-lg bg-gray-100 border-gray-200 dark:bg-gray-700 dark:border-gray-500']) name="plain_text_token" value="{{$plainTextToken}}" />
<div class="flex items-center justify-between">
<div class="inline-block text-xs">
<x-filament-breezy::clipboard-link :data="$plainTextToken" />
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/TwoFactorAuthenticatable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JeffGreco13\FilamentBreezy\Traits;
namespace Jeffgreco13\FilamentBreezy\Traits;

use Illuminate\Support\Str;
use Filament\Facades\Filament;
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

use JeffGreco13\FilamentBreezy\Tests\TestCase;
use Jeffgreco13\FilamentBreezy\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JeffGreco13\FilamentBreezy\Tests;
namespace Jeffgreco13\FilamentBreezy\Tests;

use Illuminate\Database\Eloquent\Factories\Factory;
use JeffGreco13\FilamentBreezy\FilamentBreezyServiceProvider;
use Jeffgreco13\FilamentBreezy\FilamentBreezyServiceProvider;
use Livewire\LivewireServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;

Expand All @@ -16,7 +16,7 @@ protected function setUp(): void
Factory::guessFactoryNamesUsing(
fn (
string $modelName
) => "JeffGreco13\\FilamentBreezy\\Database\\Factories\\" .
) => "Jeffgreco13\\FilamentBreezy\\Database\\Factories\\" .
class_basename($modelName) .
"Factory"
);
Expand Down

0 comments on commit 495ed71

Please sign in to comment.