Skip to content

Commit

Permalink
Merge branch 'feature/monorepo' of https://github.com/mooxphp/moox in…
Browse files Browse the repository at this point in the history
…to feature/monorepo
  • Loading branch information
Kim-the-Diamond committed Jul 23, 2024
2 parents a427501 + 1ae6330 commit ccf31d0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
21 changes: 10 additions & 11 deletions app/Providers/Filament/PressPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,24 @@

namespace App\Providers\Filament;

use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Pages;
use Filament\Panel;
use Filament\Widgets;
use Filament\PanelProvider;

use Moox\Security\Services\Login;
use Filament\Support\Colors\Color;
use Moox\Security\Services\ResetPassword;
use Filament\Http\Middleware\Authenticate;
use Illuminate\Session\Middleware\StartSession;
use Filament\Widgets;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Moox\Security\Services\RequestPasswordReset;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Moox\Security\Services\Login;
use Moox\Security\Services\RequestPasswordReset;
use Moox\Security\Services\ResetPassword;

class PressPanelProvider extends PanelProvider
{
Expand Down
12 changes: 6 additions & 6 deletions config/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

// Using Laravel Password Validation
'password' => [
// 'rules' => Password::min(20)
// ->max(64)
// ->mixedCase()
// ->numbers()
// ->symbols()
// ->uncompromised(),
// 'rules' => Password::min(20)
// ->max(64)
// ->mixedCase()
// ->numbers()
// ->symbols()
// ->uncompromised(),
],

'password_reset_links' => [
Expand Down
10 changes: 5 additions & 5 deletions packages/press/src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public function handle()
//$this->runMigrations();
$providerPath = app_path('Providers\Filament');
$panelsToregister = $this->getPanelProviderPath();
if(count($panelsToregister)>0 && $panelsToregister != null){
if (count($panelsToregister) > 0 && $panelsToregister != null) {
foreach ($panelsToregister as $panelprovider) {
$this->registerPlugins($providerPath.'/'.$panelprovider);
}
}else{
} else {
$this->registerPlugins($panelsToregister[0]);
}

Expand Down Expand Up @@ -173,9 +173,9 @@ public function getPanelProviderPath(): string|array
$providerNames[] = $provider->getBasename();
}
$providerPath = multiselect(
label:'Which Panel should it be registered',
options:[...$providerNames],
default:[$providerNames[0]],
label: 'Which Panel should it be registered',
options: [...$providerNames],
default: [$providerNames[0]],
);

}
Expand Down

0 comments on commit ccf31d0

Please sign in to comment.