-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,375 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Filament\Pages\Auth; | ||
|
||
use Filament\Pages\Auth\Login as BaseLogin; | ||
|
||
class Login extends BaseLogin | ||
{ | ||
public function mount(): void | ||
{ | ||
parent::mount(); | ||
|
||
$this->fillTestCredentials(); | ||
} | ||
|
||
/** | ||
* When `APP_ENV` is set to `local`, fill the login form with test credentials. | ||
* | ||
* @return void | ||
*/ | ||
private function fillTestCredentials(): void | ||
{ | ||
if (! app()->isLocal()) { | ||
return; | ||
} | ||
|
||
$this->form->fill([ | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'remember' => true, | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.