Skip to content

Commit a5612fe

Browse files
committed
Auto-login in local env
1 parent 2bbdfe3 commit a5612fe

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

app/Filament/Pages/Auth/Login.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace App\Filament\Pages\Auth;
4+
5+
use Filament\Pages\Auth\Login as BasePage;
6+
7+
class Login extends BasePage
8+
{
9+
public function mount(): void
10+
{
11+
parent::mount();
12+
13+
if (app()->environment('local')) {
14+
$this->form->fill([
15+
'email' => '[email protected]',
16+
'password' => 'password',
17+
'remember' => true,
18+
]);
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)