├── app ├── Models │ ├── Video.php │ └── User.php ├── Http │ ├── Controllers │ │ └── Controller.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── Authenticate.php │ │ ├── ValidateSignature.php │ │ ├── TrustProxies.php │ │ ├── RedirectIfAuthenticated.php │ │ └── HandleInertiaRequests.php │ └── Kernel.php ├── Actions │ ├── Jetstream │ │ └── DeleteUser.php │ └── Fortify │ │ ├── PasswordValidationRules.php │ │ ├── ResetUserPassword.php │ │ ├── UpdateUserPassword.php │ │ ├── CreateNewUser.php │ │ └── UpdateUserProfileInformation.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ ├── JetstreamServiceProvider.php │ ├── RouteServiceProvider.php │ └── FortifyServiceProvider.php ├── Console │ └── Kernel.php └── Exceptions │ └── Handler.php ├── database ├── .gitignore ├── seeders │ └── DatabaseSeeder.php ├── migrations │ ├── 2014_10_12_100000_create_password_reset_tokens_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2024_01_29_123959_create_sessions_table.php │ ├── 2019_12_14_000001_create_personal_access_tokens_table.php │ ├── 2014_10_12_000000_create_users_table.php │ └── 2014_10_12_200000_add_two_factor_columns_to_users_table.php └── factories │ └── UserFactory.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── public ├── robots.txt ├── favicon.ico ├── video │ ├── idle.mp4 │ └── idle_poster.jpg ├── fonts │ ├── IBMPlexSans.eot │ ├── IBMPlexSans.ttf │ ├── IBMPlexSans.woff │ ├── IBMPlexSans-Bold.eot │ ├── IBMPlexSans-Bold.ttf │ ├── IBMPlexSans-Bold.woff │ ├── IBMPlexSans-Light.eot │ ├── IBMPlexSans-Light.ttf │ ├── IBMPlexSans-Thin.eot │ ├── IBMPlexSans-Thin.ttf │ ├── IBMPlexSans-Thin.woff │ ├── IBMPlexSans-Italic.eot │ ├── IBMPlexSans-Italic.ttf │ ├── IBMPlexSans-Italic.woff │ ├── IBMPlexSans-Light.woff │ ├── IBMPlexSans-Medium.eot │ ├── IBMPlexSans-Medium.ttf │ ├── IBMPlexSans-Medium.woff │ ├── IBMPlexSans-SemiBold.eot │ ├── IBMPlexSans-SemiBold.ttf │ ├── IBMPlexSans-BoldItalic.eot │ ├── IBMPlexSans-BoldItalic.ttf │ ├── IBMPlexSans-ExtraLight.eot │ ├── IBMPlexSans-ExtraLight.ttf │ ├── IBMPlexSans-SemiBold.woff │ ├── IBMPlexSans-ThinItalic.eot │ ├── IBMPlexSans-ThinItalic.ttf │ ├── IBMPlexSans-BoldItalic.woff │ ├── IBMPlexSans-ExtraLight.woff │ ├── IBMPlexSans-LightItalic.eot │ ├── IBMPlexSans-LightItalic.ttf │ ├── IBMPlexSans-LightItalic.woff │ ├── IBMPlexSans-MediumItalic.eot │ ├── IBMPlexSans-MediumItalic.ttf │ ├── IBMPlexSans-MediumItalic.woff │ ├── IBMPlexSans-ThinItalic.woff │ ├── IBMPlexSans-SemiBoldItalic.eot │ ├── IBMPlexSans-SemiBoldItalic.ttf │ ├── IBMPlexSans-SemiBoldItalic.woff │ ├── IBMPlexSans-ExtraLightItalic.eot │ ├── IBMPlexSans-ExtraLightItalic.ttf │ └── IBMPlexSans-ExtraLightItalic.woff ├── images │ ├── background.jpg │ ├── avatar-preview.png │ ├── icon__message-read.svg │ ├── icon__send.svg │ ├── icon__sound-mute.svg │ ├── video-bg.svg │ ├── icon__microphone.svg │ ├── icon__sound-min.svg │ ├── icon__retry.svg │ ├── icon__retry-chat.svg │ └── icon__sound-max.svg ├── .htaccess └── index.php ├── resources ├── markdown │ ├── policy.md │ └── terms.md ├── js │ ├── Components │ │ ├── SectionBorder.vue │ │ ├── InputError.vue │ │ ├── InputLabel.vue │ │ ├── AuthenticationCard.vue │ │ ├── ActionMessage.vue │ │ ├── ApplicationMark.vue │ │ ├── SectionTitle.vue │ │ ├── DangerButton.vue │ │ ├── SecondaryButton.vue │ │ ├── PrimaryButton.vue │ │ ├── ActionSection.vue │ │ ├── TextInput.vue │ │ ├── AuthenticationCardLogo.vue │ │ ├── Checkbox.vue │ │ ├── NavLink.vue │ │ ├── DropdownLink.vue │ │ ├── DialogModal.vue │ │ ├── ResponsiveNavLink.vue │ │ ├── FormSection.vue │ │ ├── ConfirmationModal.vue │ │ ├── Dropdown.vue │ │ ├── Banner.vue │ │ ├── Modal.vue │ │ ├── ApplicationLogo.vue │ │ └── ConfirmsPassword.vue │ ├── Pages │ │ ├── PrivacyPolicy.vue │ │ ├── TermsOfService.vue │ │ ├── API │ │ │ └── Index.vue │ │ ├── Auth │ │ │ ├── ForgotPassword.vue │ │ │ ├── ConfirmPassword.vue │ │ │ ├── VerifyEmail.vue │ │ │ ├── ResetPassword.vue │ │ │ ├── Login.vue │ │ │ └── TwoFactorChallenge.vue │ │ └── Profile │ │ │ ├── Show.vue │ │ │ └── Partials │ │ │ ├── UpdatePasswordForm.vue │ │ │ └── DeleteUserForm.vue │ ├── app.js │ └── bootstrap.js ├── css │ ├── app.css │ └── login.css ├── scss │ ├── parts │ │ ├── _spacing.scss │ │ ├── _mixins.scss │ │ ├── _typography.scss │ │ ├── _base.scss │ │ └── _variables.scss │ └── login.scss └── views │ ├── app.blade.php │ └── emails │ └── team-invitation.blade.php ├── postcss.config.js ├── jsconfig.json ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ ├── ExampleTest.php │ ├── BrowserSessionsTest.php │ ├── ProfileInformationTest.php │ ├── DeleteApiTokenTest.php │ ├── CreateApiTokenTest.php │ ├── AuthenticationTest.php │ ├── DeleteAccountTest.php │ ├── PasswordConfirmationTest.php │ ├── ApiTokenPermissionsTest.php │ ├── RegistrationTest.php │ ├── UpdatePasswordTest.php │ ├── TwoFactorAuthenticationSettingsTest.php │ ├── EmailVerificationTest.php │ └── PasswordResetTest.php └── CreatesApplication.php ├── .gitattributes ├── .editorconfig ├── .gitignore ├── vite.config.js ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── package.json ├── tailwind.config.js ├── config ├── cors.php ├── services.php ├── view.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── jetstream.php ├── sanctum.php ├── cache.php ├── queue.php └── auth.php ├── phpunit.xml ├── .env.example ├── artisan ├── composer.json └── README.md /app/Models/Video.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/video/idle.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/video/idle.mp4 -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans.woff -------------------------------------------------------------------------------- /public/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/images/background.jpg -------------------------------------------------------------------------------- /public/video/idle_poster.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/video/idle_poster.jpg -------------------------------------------------------------------------------- /resources/markdown/policy.md: -------------------------------------------------------------------------------- 1 | # Privacy Policy 2 | 3 | Edit this file to define the privacy policy for your application. 4 | -------------------------------------------------------------------------------- /resources/markdown/terms.md: -------------------------------------------------------------------------------- 1 | # Terms of Service 2 | 3 | Edit this file to define the terms of service for your application. 4 | -------------------------------------------------------------------------------- /public/images/avatar-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/images/avatar-preview.png -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Bold.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Bold.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Bold.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Light.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Light.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Thin.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Thin.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Thin.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Thin.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Italic.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Italic.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Italic.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Light.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Medium.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Medium.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-Medium.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-SemiBold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-SemiBold.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-SemiBold.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-BoldItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-BoldItalic.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-BoldItalic.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ExtraLight.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ExtraLight.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ExtraLight.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-SemiBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-SemiBold.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ThinItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ThinItalic.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ThinItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ThinItalic.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-BoldItalic.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ExtraLight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ExtraLight.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-LightItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-LightItalic.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-LightItalic.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-LightItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-LightItalic.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-MediumItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-MediumItalic.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-MediumItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-MediumItalic.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-MediumItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-MediumItalic.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ThinItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ThinItalic.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-SemiBoldItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-SemiBoldItalic.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-SemiBoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-SemiBoldItalic.woff -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ExtraLightItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ExtraLightItalic.eot -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ExtraLightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ExtraLightItalic.ttf -------------------------------------------------------------------------------- /public/fonts/IBMPlexSans-ExtraLightItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beaubeas/Elevenlabs-Voice-chatbot/HEAD/public/fonts/IBMPlexSans-ExtraLightItalic.woff -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "@/*": ["resources/js/*"] 6 | } 7 | }, 8 | "exclude": ["node_modules", "public"] 9 | } 10 | -------------------------------------------------------------------------------- /resources/js/Components/SectionBorder.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | 2 | defineProps({ 3 | message: String, 4 | }); 5 | 6 | 7 | 14 | -------------------------------------------------------------------------------- /resources/js/Components/InputLabel.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | -------------------------------------------------------------------------------- /resources/scss/parts/_spacing.scss: -------------------------------------------------------------------------------- 1 | 2 | .nmt { 3 | margin-top: 0 !important; 4 | } 5 | 6 | .nmb { 7 | margin-bottom: 0 !important; 8 | } 9 | 10 | @include marginGenerator($marginList); 11 | 12 | //@include paddingGenerator($paddingList); 13 | 14 | @mixin baseMargin () { 15 | @include marginGenerator($marginList); 16 | } -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /public/images/icon__message-read.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.phpunit.cache 2 | /node_modules 3 | /public/build 4 | /public/hot 5 | /public/storage 6 | /storage/*.key 7 | /vendor 8 | .env 9 | .env.backup 10 | .env.production 11 | .phpunit.result.cache 12 | Homestead.json 13 | Homestead.yaml 14 | auth.json 15 | npm-debug.log 16 | yarn-error.log 17 | /.fleet 18 | /.idea 19 | /.vscode 20 | *.DS_Store 21 | update.sh 22 | -------------------------------------------------------------------------------- /resources/scss/parts/_mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin fw($weight: normal) { 2 | font-weight: map-get($fontWeights, $weight); 3 | } 4 | 5 | @mixin medium { 6 | @media (max-width: $xl) { 7 | @content; 8 | } 9 | } 10 | @mixin tablet { 11 | @media (max-width: $md) { 12 | @content; 13 | } 14 | } 15 | @mixin phone { 16 | @media (max-width: $sm) { 17 | @content; 18 | } 19 | } -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /resources/js/Components/AuthenticationCard.vue: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /resources/js/Components/ActionMessage.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 16 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 16 | 17 | $response->assertStatus(200); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Actions/Jetstream/DeleteUser.php: -------------------------------------------------------------------------------- 1 | deleteProfilePhoto(); 16 | $user->tokens->each->delete(); 17 | $user->delete(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /public/images/icon__send.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 18 | 19 | return $app; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts(): array 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson() ? null : route('login'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Actions/Fortify/PasswordValidationRules.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected function passwordRules(): array 15 | { 16 | return ['required', 'string', Password::default(), 'confirmed']; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /resources/js/Components/SectionTitle.vue: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import laravel from 'laravel-vite-plugin'; 3 | import vue from '@vitejs/plugin-vue'; 4 | 5 | export default defineConfig({ 6 | plugins: [ 7 | laravel({ 8 | input: 'resources/js/app.js', 9 | refresh: true, 10 | }), 11 | vue({ 12 | template: { 13 | transformAssetUrls: { 14 | base: null, 15 | includeAbsolute: false, 16 | }, 17 | }, 18 | }), 19 | ], 20 | }); 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/ValidateSignature.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 'fbclid', 16 | // 'utm_campaign', 17 | // 'utm_content', 18 | // 'utm_medium', 19 | // 'utm_source', 20 | // 'utm_term', 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /resources/js/Components/DangerButton.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 15 | -------------------------------------------------------------------------------- /resources/js/Components/SecondaryButton.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 15 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 16 | 17 | // \App\Models\User::factory()->create([ 18 | // 'name' => 'Test User', 19 | // 'email' => 'test@example.com', 20 | // ]); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /resources/js/Components/PrimaryButton.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 15 | -------------------------------------------------------------------------------- /public/images/icon__sound-mute.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /public/images/video-bg.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /tests/Feature/BrowserSessionsTest.php: -------------------------------------------------------------------------------- 1 | actingAs($user = User::factory()->create()); 16 | 17 | $response = $this->delete('/user/other-browser-sessions', [ 18 | 'password' => 'password', 19 | ]); 20 | 21 | $response->assertSessionHasNoErrors(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | protected $policies = [ 16 | // 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | */ 22 | public function boot(): void 23 | { 24 | // 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 16 | } 17 | 18 | /** 19 | * Register the commands for the application. 20 | */ 21 | protected function commands(): void 22 | { 23 | $this->load(__DIR__.'/Commands'); 24 | 25 | require base_path('routes/console.php'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "type": "module", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build" 7 | }, 8 | "devDependencies": { 9 | "@inertiajs/vue3": "^1.0.0", 10 | "@tailwindcss/forms": "^0.5.2", 11 | "@tailwindcss/typography": "^0.5.2", 12 | "@vitejs/plugin-vue": "^4.5.0", 13 | "autoprefixer": "^10.4.7", 14 | "axios": "^1.6.4", 15 | "laravel-vite-plugin": "^1.0.0", 16 | "postcss": "^8.4.14", 17 | "tailwindcss": "^3.1.0", 18 | "vite": "^5.0.0", 19 | "vue": "^3.2.31" 20 | }, 21 | "dependencies": { 22 | "@deepgram/sdk": "^3.0.1" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /resources/js/Components/ActionSection.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 23 | -------------------------------------------------------------------------------- /resources/js/Components/TextInput.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 29 | -------------------------------------------------------------------------------- /resources/js/Components/AuthenticationCardLogo.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 18 | -------------------------------------------------------------------------------- /tests/Feature/ProfileInformationTest.php: -------------------------------------------------------------------------------- 1 | actingAs($user = User::factory()->create()); 16 | 17 | $response = $this->put('/user/profile-information', [ 18 | 'name' => 'Test Name', 19 | 'email' => 'test@example.com', 20 | ]); 21 | 22 | $this->assertEquals('Test Name', $user->fresh()->name); 23 | $this->assertEquals('test@example.com', $user->fresh()->email); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | protected $dontFlash = [ 16 | 'current_password', 17 | 'password', 18 | 'password_confirmation', 19 | ]; 20 | 21 | /** 22 | * Register the exception handling callbacks for the application. 23 | */ 24 | public function register(): void 25 | { 26 | $this->reportable(function (Throwable $e) { 27 | // 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | import defaultTheme from 'tailwindcss/defaultTheme'; 2 | import forms from '@tailwindcss/forms'; 3 | import typography from '@tailwindcss/typography'; 4 | 5 | /** @type {import('tailwindcss').Config} */ 6 | export default { 7 | content: [ 8 | './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', 9 | './vendor/laravel/jetstream/**/*.blade.php', 10 | './storage/framework/views/*.php', 11 | './resources/views/**/*.blade.php', 12 | './resources/js/**/*.vue', 13 | ], 14 | 15 | theme: { 16 | extend: { 17 | fontFamily: { 18 | sans: ['Figtree', ...defaultTheme.fontFamily.sans], 19 | }, 20 | }, 21 | }, 22 | 23 | plugins: [forms, typography], 24 | }; 25 | -------------------------------------------------------------------------------- /resources/views/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{ config('app.name', 'Laravel') }} 8 | 9 | 10 | 11 | 12 | 13 | 14 | @routes 15 | @vite(['resources/js/app.js', "resources/js/Pages/{$page['component']}.vue"]) 16 | @inertiaHead 17 | 18 | 19 | @inertia 20 | 21 | 22 | -------------------------------------------------------------------------------- /resources/js/Pages/PrivacyPolicy.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 25 | -------------------------------------------------------------------------------- /resources/js/Pages/TermsOfService.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 25 | -------------------------------------------------------------------------------- /resources/js/Components/Checkbox.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 29 | 37 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php: -------------------------------------------------------------------------------- 1 | string('email')->primary(); 16 | $table->string('token'); 17 | $table->timestamp('created_at')->nullable(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::dropIfExists('password_reset_tokens'); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /app/Actions/Fortify/ResetUserPassword.php: -------------------------------------------------------------------------------- 1 | $input 18 | */ 19 | public function reset(User $user, array $input): void 20 | { 21 | Validator::make($input, [ 22 | 'password' => $this->passwordRules(), 23 | ])->validate(); 24 | 25 | $user->forceFill([ 26 | 'password' => Hash::make($input['password']), 27 | ])->save(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /resources/js/Components/NavLink.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 24 | return redirect(RouteServiceProvider::HOME); 25 | } 26 | } 27 | 28 | return $next($request); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('uuid')->unique(); 17 | $table->text('connection'); 18 | $table->text('queue'); 19 | $table->longText('payload'); 20 | $table->longText('exception'); 21 | $table->timestamp('failed_at')->useCurrent(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | */ 28 | public function down(): void 29 | { 30 | Schema::dropIfExists('failed_jobs'); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /database/migrations/2024_01_29_123959_create_sessions_table.php: -------------------------------------------------------------------------------- 1 | string('id')->primary(); 16 | $table->foreignId('user_id')->nullable()->index(); 17 | $table->string('ip_address', 45)->nullable(); 18 | $table->text('user_agent')->nullable(); 19 | $table->longText('payload'); 20 | $table->integer('last_activity')->index(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | */ 27 | public function down(): void 28 | { 29 | Schema::dropIfExists('sessions'); 30 | } 31 | }; 32 | -------------------------------------------------------------------------------- /resources/js/Pages/API/Index.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 31 | -------------------------------------------------------------------------------- /public/images/icon__microphone.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /resources/js/Components/DropdownLink.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 25 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | import './bootstrap'; 5 | import '../css/app.css'; 6 | import './plugins/simplebar.min.js'; 7 | 8 | 9 | 10 | 11 | import { createApp, h } from 'vue'; 12 | import { createInertiaApp } from '@inertiajs/vue3'; 13 | import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'; 14 | import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m'; 15 | 16 | 17 | const appName = import.meta.env.VITE_APP_NAME || 'Laravel'; 18 | 19 | 20 | 21 | createInertiaApp({ 22 | title: (title) => `${title} - ${appName}`, 23 | resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')), 24 | setup({ el, App, props, plugin }) { 25 | return createApp({ render: () => h(App, props) }) 26 | .use(plugin) 27 | .use(ZiggyVue) 28 | .mount(el); 29 | }, 30 | progress: { 31 | color: '#4B5563', 32 | }, 33 | }); 34 | 35 | 36 | 37 | 38 | // import './scripts.js'; 39 | -------------------------------------------------------------------------------- /tests/Feature/DeleteApiTokenTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('API support is not enabled.'); 19 | } 20 | 21 | $this->actingAs($user = User::factory()->withPersonalTeam()->create()); 22 | 23 | $token = $user->tokens()->create([ 24 | 'name' => 'Test Token', 25 | 'token' => Str::random(40), 26 | 'abilities' => ['create', 'read'], 27 | ]); 28 | 29 | $response = $this->delete('/user/api-tokens/'.$token->id); 30 | 31 | $this->assertCount(0, $user->fresh()->tokens); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /resources/views/emails/team-invitation.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::message') 2 | {{ __('You have been invited to join the :team team!', ['team' => $invitation->team->name]) }} 3 | 4 | @if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::registration())) 5 | {{ __('If you do not have an account, you may create one by clicking the button below. After creating an account, you may click the invitation acceptance button in this email to accept the team invitation:') }} 6 | 7 | @component('mail::button', ['url' => route('register')]) 8 | {{ __('Create Account') }} 9 | @endcomponent 10 | 11 | {{ __('If you already have an account, you may accept this invitation by clicking the button below:') }} 12 | 13 | @else 14 | {{ __('You may accept this invitation by clicking the button below:') }} 15 | @endif 16 | 17 | 18 | @component('mail::button', ['url' => $acceptUrl]) 19 | {{ __('Accept Invitation') }} 20 | @endcomponent 21 | 22 | {{ __('If you did not expect to receive an invitation to this team, you may discard this email.') }} 23 | @endcomponent 24 | -------------------------------------------------------------------------------- /database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->morphs('tokenable'); 17 | $table->string('name'); 18 | $table->string('token', 64)->unique(); 19 | $table->text('abilities')->nullable(); 20 | $table->timestamp('last_used_at')->nullable(); 21 | $table->timestamp('expires_at')->nullable(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('personal_access_tokens'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | */ 26 | public function boot(): void 27 | { 28 | // 29 | } 30 | 31 | /** 32 | * Determine if events and listeners should be automatically discovered. 33 | */ 34 | public function shouldDiscoverEvents(): bool 35 | { 36 | return false; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('name'); 17 | $table->string('email')->unique(); 18 | $table->timestamp('email_verified_at')->nullable(); 19 | $table->string('password'); 20 | $table->rememberToken(); 21 | $table->foreignId('current_team_id')->nullable(); 22 | $table->string('profile_photo_path', 2048)->nullable(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('users'); 33 | } 34 | }; 35 | -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserPassword.php: -------------------------------------------------------------------------------- 1 | $input 18 | */ 19 | public function update(User $user, array $input): void 20 | { 21 | Validator::make($input, [ 22 | 'current_password' => ['required', 'string', 'current_password:web'], 23 | 'password' => $this->passwordRules(), 24 | ], [ 25 | 'current_password.current_password' => __('The provided password does not match your current password.'), 26 | ])->validateWithBag('updatePassword'); 27 | 28 | $user->forceFill([ 29 | 'password' => Hash::make($input['password']), 30 | ])->save(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/JetstreamServiceProvider.php: -------------------------------------------------------------------------------- 1 | configurePermissions(); 25 | 26 | Jetstream::deleteUsersUsing(DeleteUser::class); 27 | } 28 | 29 | /** 30 | * Configure the permissions that are available within the application. 31 | */ 32 | protected function configurePermissions(): void 33 | { 34 | Jetstream::defaultApiTokenPermissions(['read']); 35 | 36 | Jetstream::permissions([ 37 | 'create', 38 | 'read', 39 | 'update', 40 | 'delete', 41 | ]); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | 'scheme' => 'https', 22 | ], 23 | 24 | 'postmark' => [ 25 | 'token' => env('POSTMARK_TOKEN'), 26 | ], 27 | 28 | 'ses' => [ 29 | 'key' => env('AWS_ACCESS_KEY_ID'), 30 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 31 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 32 | ], 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /tests/Feature/CreateApiTokenTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('API support is not enabled.'); 18 | } 19 | 20 | $this->actingAs($user = User::factory()->withPersonalTeam()->create()); 21 | 22 | $response = $this->post('/user/api-tokens', [ 23 | 'name' => 'Test Token', 24 | 'permissions' => [ 25 | 'read', 26 | 'update', 27 | ], 28 | ]); 29 | 30 | $this->assertCount(1, $user->fresh()->tokens); 31 | $this->assertEquals('Test Token', $user->fresh()->tokens->first()->name); 32 | $this->assertTrue($user->fresh()->tokens->first()->can('read')); 33 | $this->assertFalse($user->fresh()->tokens->first()->can('delete')); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/js/Components/DialogModal.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 48 | -------------------------------------------------------------------------------- /app/Actions/Fortify/CreateNewUser.php: -------------------------------------------------------------------------------- 1 | $input 19 | */ 20 | public function create(array $input): User 21 | { 22 | Validator::make($input, [ 23 | 'name' => ['required', 'string', 'max:255'], 24 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 25 | 'password' => $this->passwordRules(), 26 | 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['accepted', 'required'] : '', 27 | ])->validate(); 28 | 29 | return User::create([ 30 | 'name' => $input['name'], 31 | 'email' => $input['email'], 32 | 'password' => Hash::make($input['password']), 33 | ]); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | Route::has('login'), 22 | // 'canRegister' => Route::has('register'), 23 | // 'laravelVersion' => Application::VERSION, 24 | // 'phpVersion' => PHP_VERSION, 25 | // ]); 26 | }); 27 | 28 | Route::middleware([ 29 | 'auth:sanctum', 30 | config('jetstream.auth_session'), 31 | 'verified', 32 | ])->group(function () { 33 | Route::get('/dashboard', function () { 34 | return Inertia::render('Dashboard'); 35 | })->name('dashboard'); 36 | }); 37 | -------------------------------------------------------------------------------- /resources/js/Components/ResponsiveNavLink.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 29 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /app/Http/Middleware/HandleInertiaRequests.php: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | tests/Unit 10 | 11 | 12 | tests/Feature 13 | 14 | 15 | 16 | 17 | app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/Feature/AuthenticationTest.php: -------------------------------------------------------------------------------- 1 | get('/login'); 17 | 18 | $response->assertStatus(200); 19 | } 20 | 21 | public function test_users_can_authenticate_using_the_login_screen(): void 22 | { 23 | $user = User::factory()->create(); 24 | 25 | $response = $this->post('/login', [ 26 | 'email' => $user->email, 27 | 'password' => 'password', 28 | ]); 29 | 30 | $this->assertAuthenticated(); 31 | $response->assertRedirect(RouteServiceProvider::HOME); 32 | } 33 | 34 | public function test_users_can_not_authenticate_with_invalid_password(): void 35 | { 36 | $user = User::factory()->create(); 37 | 38 | $this->post('/login', [ 39 | 'email' => $user->email, 40 | 'password' => 'wrong-password', 41 | ]); 42 | 43 | $this->assertGuest(); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | by($request->user()?->id ?: $request->ip()); 29 | }); 30 | 31 | $this->routes(function () { 32 | Route::middleware('api') 33 | ->prefix('api') 34 | ->group(base_path('routes/api.php')); 35 | 36 | Route::middleware('web') 37 | ->group(base_path('routes/web.php')); 38 | }); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/Feature/DeleteAccountTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Account deletion is not enabled.'); 18 | } 19 | 20 | $this->actingAs($user = User::factory()->create()); 21 | 22 | $response = $this->delete('/user', [ 23 | 'password' => 'password', 24 | ]); 25 | 26 | $this->assertNull($user->fresh()); 27 | } 28 | 29 | public function test_correct_password_must_be_provided_before_account_can_be_deleted(): void 30 | { 31 | if (! Features::hasAccountDeletionFeatures()) { 32 | $this->markTestSkipped('Account deletion is not enabled.'); 33 | } 34 | 35 | $this->actingAs($user = User::factory()->create()); 36 | 37 | $response = $this->delete('/user', [ 38 | 'password' => 'wrong-password', 39 | ]); 40 | 41 | $this->assertNotNull($user->fresh()); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /tests/Feature/PasswordConfirmationTest.php: -------------------------------------------------------------------------------- 1 | withPersonalTeam()->create(); 16 | 17 | $response = $this->actingAs($user)->get('/user/confirm-password'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | 22 | public function test_password_can_be_confirmed(): void 23 | { 24 | $user = User::factory()->create(); 25 | 26 | $response = $this->actingAs($user)->post('/user/confirm-password', [ 27 | 'password' => 'password', 28 | ]); 29 | 30 | $response->assertRedirect(); 31 | $response->assertSessionHasNoErrors(); 32 | } 33 | 34 | public function test_password_is_not_confirmed_with_invalid_password(): void 35 | { 36 | $user = User::factory()->create(); 37 | 38 | $response = $this->actingAs($user)->post('/user/confirm-password', [ 39 | 'password' => 'wrong-password', 40 | ]); 41 | 42 | $response->assertSessionHasErrors(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | LOG_DEPRECATIONS_CHANNEL=null 9 | LOG_LEVEL=debug 10 | 11 | DB_CONNECTION=mysql 12 | DB_HOST=127.0.0.1 13 | DB_PORT=3306 14 | DB_DATABASE=laravel 15 | DB_USERNAME=root 16 | DB_PASSWORD= 17 | 18 | BROADCAST_DRIVER=log 19 | CACHE_DRIVER=file 20 | FILESYSTEM_DISK=local 21 | QUEUE_CONNECTION=sync 22 | SESSION_DRIVER=database 23 | SESSION_LIFETIME=120 24 | 25 | MEMCACHED_HOST=127.0.0.1 26 | 27 | REDIS_HOST=127.0.0.1 28 | REDIS_PASSWORD=null 29 | REDIS_PORT=6379 30 | 31 | MAIL_MAILER=smtp 32 | MAIL_HOST=mailpit 33 | MAIL_PORT=1025 34 | MAIL_USERNAME=null 35 | MAIL_PASSWORD=null 36 | MAIL_ENCRYPTION=null 37 | MAIL_FROM_ADDRESS="hello@example.com" 38 | MAIL_FROM_NAME="${APP_NAME}" 39 | 40 | AWS_ACCESS_KEY_ID= 41 | AWS_SECRET_ACCESS_KEY= 42 | AWS_DEFAULT_REGION=us-east-1 43 | AWS_BUCKET= 44 | AWS_USE_PATH_STYLE_ENDPOINT=false 45 | 46 | PUSHER_APP_ID= 47 | PUSHER_APP_KEY= 48 | PUSHER_APP_SECRET= 49 | PUSHER_HOST= 50 | PUSHER_PORT=443 51 | PUSHER_SCHEME=https 52 | PUSHER_APP_CLUSTER=mt1 53 | 54 | VITE_APP_NAME="${APP_NAME}" 55 | VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 56 | VITE_PUSHER_HOST="${PUSHER_HOST}" 57 | VITE_PUSHER_PORT="${PUSHER_PORT}" 58 | VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" 59 | VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 60 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /** 2 | * We'll load the axios HTTP library which allows us to easily issue requests 3 | * to our Laravel back-end. This library automatically handles sending the 4 | * CSRF token as a header based on the value of the "XSRF" token cookie. 5 | */ 6 | 7 | import axios from 'axios'; 8 | window.axios = axios; 9 | 10 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 11 | 12 | /** 13 | * Echo exposes an expressive API for subscribing to channels and listening 14 | * for events that are broadcast by Laravel. Echo and event broadcasting 15 | * allows your team to easily build robust real-time web applications. 16 | */ 17 | 18 | // import Echo from 'laravel-echo'; 19 | 20 | // import Pusher from 'pusher-js'; 21 | // window.Pusher = Pusher; 22 | 23 | // window.Echo = new Echo({ 24 | // broadcaster: 'pusher', 25 | // key: import.meta.env.VITE_PUSHER_APP_KEY, 26 | // cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', 27 | // wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, 28 | // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, 29 | // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, 30 | // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', 31 | // enabledTransports: ['ws', 'wss'], 32 | // }); 33 | -------------------------------------------------------------------------------- /tests/Feature/ApiTokenPermissionsTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('API support is not enabled.'); 19 | } 20 | 21 | $this->actingAs($user = User::factory()->withPersonalTeam()->create()); 22 | 23 | $token = $user->tokens()->create([ 24 | 'name' => 'Test Token', 25 | 'token' => Str::random(40), 26 | 'abilities' => ['create', 'read'], 27 | ]); 28 | 29 | $response = $this->put('/user/api-tokens/'.$token->id, [ 30 | 'name' => $token->name, 31 | 'permissions' => [ 32 | 'delete', 33 | 'missing-permission', 34 | ], 35 | ]); 36 | 37 | $this->assertTrue($user->fresh()->tokens->first()->can('delete')); 38 | $this->assertFalse($user->fresh()->tokens->first()->can('read')); 39 | $this->assertFalse($user->fresh()->tokens->first()->can('missing-permission')); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /resources/js/Components/FormSection.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 39 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php: -------------------------------------------------------------------------------- 1 | text('two_factor_secret') 17 | ->after('password') 18 | ->nullable(); 19 | 20 | $table->text('two_factor_recovery_codes') 21 | ->after('two_factor_secret') 22 | ->nullable(); 23 | 24 | if (Fortify::confirmsTwoFactorAuthentication()) { 25 | $table->timestamp('two_factor_confirmed_at') 26 | ->after('two_factor_recovery_codes') 27 | ->nullable(); 28 | } 29 | }); 30 | } 31 | 32 | /** 33 | * Reverse the migrations. 34 | */ 35 | public function down(): void 36 | { 37 | Schema::table('users', function (Blueprint $table) { 38 | $table->dropColumn(array_merge([ 39 | 'two_factor_secret', 40 | 'two_factor_recovery_codes', 41 | ], Fortify::confirmsTwoFactorAuthentication() ? [ 42 | 'two_factor_confirmed_at', 43 | ] : [])); 44 | }); 45 | } 46 | }; 47 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 25 | */ 26 | protected $fillable = [ 27 | 'name', 28 | 'email', 29 | 'password', 30 | ]; 31 | 32 | /** 33 | * The attributes that should be hidden for serialization. 34 | * 35 | * @var array 36 | */ 37 | protected $hidden = [ 38 | 'password', 39 | 'remember_token', 40 | 'two_factor_recovery_codes', 41 | 'two_factor_secret', 42 | ]; 43 | 44 | /** 45 | * The attributes that should be cast. 46 | * 47 | * @var array 48 | */ 49 | protected $casts = [ 50 | 'email_verified_at' => 'datetime', 51 | ]; 52 | 53 | /** 54 | * The accessors to append to the model's array form. 55 | * 56 | * @var array 57 | */ 58 | protected $appends = [ 59 | 'profile_photo_url', 60 | ]; 61 | } 62 | -------------------------------------------------------------------------------- /app/Providers/FortifyServiceProvider.php: -------------------------------------------------------------------------------- 1 | input(Fortify::username())).'|'.$request->ip()); 38 | 39 | return Limit::perMinute(5)->by($throttleKey); 40 | }); 41 | 42 | RateLimiter::for('two-factor', function (Request $request) { 43 | return Limit::perMinute(5)->by($request->session()->get('login.id')); 44 | }); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /tests/Feature/RegistrationTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Registration support is not enabled.'); 19 | } 20 | 21 | $response = $this->get('/register'); 22 | 23 | $response->assertStatus(200); 24 | } 25 | 26 | public function test_registration_screen_cannot_be_rendered_if_support_is_disabled(): void 27 | { 28 | if (Features::enabled(Features::registration())) { 29 | $this->markTestSkipped('Registration support is enabled.'); 30 | } 31 | 32 | $response = $this->get('/register'); 33 | 34 | $response->assertStatus(404); 35 | } 36 | 37 | public function test_new_users_can_register(): void 38 | { 39 | if (! Features::enabled(Features::registration())) { 40 | $this->markTestSkipped('Registration support is not enabled.'); 41 | } 42 | 43 | $response = $this->post('/register', [ 44 | 'name' => 'Test User', 45 | 'email' => 'test@example.com', 46 | 'password' => 'password', 47 | 'password_confirmation' => 'password', 48 | 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature(), 49 | ]); 50 | 51 | $this->assertAuthenticated(); 52 | $response->assertRedirect(RouteServiceProvider::HOME); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /resources/scss/parts/_typography.scss: -------------------------------------------------------------------------------- 1 | 2 | @include fontSizeGenerator($fontSizeList); 3 | @include fontWeightGenerator($fontWeightList); 4 | 5 | h1,h2,h3 { 6 | margin: 0; 7 | padding: 0; 8 | } 9 | 10 | p { 11 | margin: 0; 12 | } 13 | 14 | .lh-auto { 15 | line-height: $lhAuto; 16 | } 17 | 18 | .lh-default { 19 | line-height: $lhDefault; 20 | } 21 | 22 | .lh-small { 23 | line-height: $lhSmall; 24 | } 25 | 26 | /* Font Colors */ 27 | .fc-white { 28 | color: $colorWhite; 29 | } 30 | .fc-dark { 31 | color: $colorDark; 32 | } 33 | .fc-accent { 34 | color: $colorAccent; 35 | } 36 | 37 | .fc-chart-blue-1 { 38 | color: #5581CA; 39 | } 40 | 41 | .fc-chart-blue-2 { 42 | color: #8EAAF0; 43 | } 44 | 45 | 46 | /* Font Styles */ 47 | h2 { 48 | font-weight: $bold; 49 | //@extend .fz-32; 50 | //@extend .lh-default; 51 | 52 | margin-left: auto; 53 | margin-right: auto; 54 | 55 | text-align: center; 56 | 57 | span { 58 | font-weight: $light; 59 | } 60 | 61 | } 62 | 63 | h3 { 64 | font-weight: $extra-bold; 65 | font-size: 24px; 66 | @extend .lh-default; 67 | } 68 | 69 | sup { 70 | font-size: 57%; 71 | } 72 | 73 | .wrap-all { 74 | word-break: break-all; 75 | color: inherit; 76 | } 77 | 78 | .text-uppercase { 79 | text-transform: uppercase; 80 | } 81 | 82 | .text-center { 83 | text-align: center; 84 | } 85 | .text-center--force { 86 | text-align: center; 87 | width: 100%; 88 | } 89 | 90 | .word-wrap { 91 | word-wrap: break-word; 92 | word-break: break-word; 93 | hyphens: auto; 94 | } 95 | 96 | button { 97 | margin: 0; 98 | padding: 0; 99 | box-shadow: none; 100 | border: none; 101 | background: transparent; 102 | } 103 | 104 | .c-blue { 105 | color: #001489; 106 | } -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 12), 33 | 'verify' => true, 34 | ], 35 | 36 | /* 37 | |-------------------------------------------------------------------------- 38 | | Argon Options 39 | |-------------------------------------------------------------------------- 40 | | 41 | | Here you may specify the configuration options that should be used when 42 | | passwords are hashed using the Argon algorithm. These will allow you 43 | | to control the amount of time it takes to hash the given password. 44 | | 45 | */ 46 | 47 | 'argon' => [ 48 | 'memory' => 65536, 49 | 'threads' => 1, 50 | 'time' => 4, 51 | 'verify' => true, 52 | ], 53 | 54 | ]; 55 | -------------------------------------------------------------------------------- /tests/Feature/UpdatePasswordTest.php: -------------------------------------------------------------------------------- 1 | actingAs($user = User::factory()->create()); 17 | 18 | $response = $this->put('/user/password', [ 19 | 'current_password' => 'password', 20 | 'password' => 'new-password', 21 | 'password_confirmation' => 'new-password', 22 | ]); 23 | 24 | $this->assertTrue(Hash::check('new-password', $user->fresh()->password)); 25 | } 26 | 27 | public function test_current_password_must_be_correct(): void 28 | { 29 | $this->actingAs($user = User::factory()->create()); 30 | 31 | $response = $this->put('/user/password', [ 32 | 'current_password' => 'wrong-password', 33 | 'password' => 'new-password', 34 | 'password_confirmation' => 'new-password', 35 | ]); 36 | 37 | $response->assertSessionHasErrors(); 38 | 39 | $this->assertTrue(Hash::check('password', $user->fresh()->password)); 40 | } 41 | 42 | public function test_new_passwords_must_match(): void 43 | { 44 | $this->actingAs($user = User::factory()->create()); 45 | 46 | $response = $this->put('/user/password', [ 47 | 'current_password' => 'password', 48 | 'password' => 'new-password', 49 | 'password_confirmation' => 'wrong-password', 50 | ]); 51 | 52 | $response->assertSessionHasErrors(); 53 | 54 | $this->assertTrue(Hash::check('password', $user->fresh()->password)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = $kernel->handle( 52 | $request = Request::capture() 53 | )->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserProfileInformation.php: -------------------------------------------------------------------------------- 1 | $input 17 | */ 18 | public function update(User $user, array $input): void 19 | { 20 | Validator::make($input, [ 21 | 'name' => ['required', 'string', 'max:255'], 22 | 'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)], 23 | 'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'], 24 | ])->validateWithBag('updateProfileInformation'); 25 | 26 | if (isset($input['photo'])) { 27 | $user->updateProfilePhoto($input['photo']); 28 | } 29 | 30 | if ($input['email'] !== $user->email && 31 | $user instanceof MustVerifyEmail) { 32 | $this->updateVerifiedUser($user, $input); 33 | } else { 34 | $user->forceFill([ 35 | 'name' => $input['name'], 36 | 'email' => $input['email'], 37 | ])->save(); 38 | } 39 | } 40 | 41 | /** 42 | * Update the given verified user's profile information. 43 | * 44 | * @param array $input 45 | */ 46 | protected function updateVerifiedUser(User $user, array $input): void 47 | { 48 | $user->forceFill([ 49 | 'name' => $input['name'], 50 | 'email' => $input['email'], 51 | 'email_verified_at' => null, 52 | ])->save(); 53 | 54 | $user->sendEmailVerificationNotification(); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /resources/js/Components/ConfirmationModal.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 58 | -------------------------------------------------------------------------------- /resources/scss/parts/_base.scss: -------------------------------------------------------------------------------- 1 | html, body, *, :after, :before { 2 | outline: none !important; 3 | box-sizing: border-box; 4 | } 5 | 6 | b, strong { 7 | @for $i from 7 to 12 { 8 | $listKeys: map-keys($fontWeights); 9 | $name: nth($listKeys, $i); 10 | &.#{$name} { 11 | @include fw($name); 12 | } 13 | } 14 | } 15 | 16 | p { 17 | font-family: inherit; 18 | font-size: inherit; 19 | line-height: inherit; 20 | color: inherit; 21 | } 22 | 23 | span { 24 | font-family: inherit; 25 | font-size: inherit; 26 | line-height: inherit; 27 | color: inherit; 28 | } 29 | 30 | b { 31 | @include fw(bold); 32 | font-size: inherit; 33 | line-height: inherit; 34 | color: inherit; 35 | } 36 | 37 | i { 38 | font-family: inherit; 39 | font-size: inherit; 40 | line-height: inherit; 41 | color: inherit; 42 | font-style: italic; 43 | } 44 | 45 | a { 46 | font-family: inherit; 47 | font-size: inherit; 48 | line-height: inherit; 49 | color: inherit; 50 | } 51 | 52 | strong { 53 | @include fw(semibold); 54 | } 55 | 56 | @each $name, $val in $fontWeights { 57 | .fw-#{$name + ""} { 58 | @include fw($name) 59 | } 60 | } 61 | 62 | sup { 63 | display: inline-block; 64 | top: auto; 65 | font-size: 50%; 66 | transform: translateY(-9px); 67 | } 68 | 69 | mark { 70 | background-color: transparent; 71 | } 72 | 73 | .img-wrapper { 74 | display: inline-flex; 75 | position: relative; 76 | 77 | .desktop { 78 | display: block; 79 | } 80 | 81 | .mobile { 82 | display: none; 83 | } 84 | 85 | &.center { 86 | justify-content: center; 87 | align-items: center; 88 | } 89 | 90 | img { 91 | width: 100%; 92 | height: auto; 93 | } 94 | 95 | @include phone { 96 | .desktop { 97 | display: none; 98 | } 99 | 100 | .mobile { 101 | display: block; 102 | } 103 | } 104 | } 105 | 106 | button { 107 | border: none; 108 | box-shadow: none; 109 | padding: 0; 110 | margin: 0; 111 | background-color: transparent; 112 | } -------------------------------------------------------------------------------- /public/images/icon__sound-min.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | class UserFactory extends Factory 15 | { 16 | /** 17 | * Define the model's default state. 18 | * 19 | * @return array 20 | */ 21 | public function definition(): array 22 | { 23 | return [ 24 | 'name' => $this->faker->name(), 25 | 'email' => $this->faker->unique()->safeEmail(), 26 | 'email_verified_at' => now(), 27 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 28 | 'two_factor_secret' => null, 29 | 'two_factor_recovery_codes' => null, 30 | 'remember_token' => Str::random(10), 31 | 'profile_photo_path' => null, 32 | 'current_team_id' => null, 33 | ]; 34 | } 35 | 36 | /** 37 | * Indicate that the model's email address should be unverified. 38 | */ 39 | public function unverified(): static 40 | { 41 | return $this->state(function (array $attributes) { 42 | return [ 43 | 'email_verified_at' => null, 44 | ]; 45 | }); 46 | } 47 | 48 | /** 49 | * Indicate that the user should have a personal team. 50 | */ 51 | public function withPersonalTeam(callable $callback = null): static 52 | { 53 | if (! Features::hasTeamFeatures()) { 54 | return $this->state([]); 55 | } 56 | 57 | return $this->has( 58 | Team::factory() 59 | ->state(fn (array $attributes, User $user) => [ 60 | 'name' => $user->name.'\'s Team', 61 | 'user_id' => $user->id, 62 | 'personal_team' => true, 63 | ]) 64 | ->when(is_callable($callback), $callback), 65 | 'ownedTeams' 66 | ); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /resources/js/Pages/Auth/ForgotPassword.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 62 | -------------------------------------------------------------------------------- /resources/js/Pages/Auth/ConfirmPassword.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 64 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The skeleton application for the Laravel framework.", 5 | "keywords": ["laravel", "framework"], 6 | "license": "MIT", 7 | "require": { 8 | "php": "^8.1", 9 | "guzzlehttp/guzzle": "^7.2", 10 | "inertiajs/inertia-laravel": "^0.6.8", 11 | "laravel/framework": "^10.10", 12 | "laravel/jetstream": "^4.2", 13 | "laravel/sanctum": "^3.3", 14 | "laravel/tinker": "^2.8", 15 | "tightenco/ziggy": "^1.0" 16 | }, 17 | "require-dev": { 18 | "fakerphp/faker": "^1.9.1", 19 | "laravel/pint": "^1.0", 20 | "laravel/sail": "^1.18", 21 | "mockery/mockery": "^1.4.4", 22 | "nunomaduro/collision": "^7.0", 23 | "phpunit/phpunit": "^10.1", 24 | "spatie/laravel-ignition": "^2.0" 25 | }, 26 | "autoload": { 27 | "psr-4": { 28 | "App\\": "app/", 29 | "Database\\Factories\\": "database/factories/", 30 | "Database\\Seeders\\": "database/seeders/" 31 | } 32 | }, 33 | "autoload-dev": { 34 | "psr-4": { 35 | "Tests\\": "tests/" 36 | } 37 | }, 38 | "scripts": { 39 | "post-autoload-dump": [ 40 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 41 | "@php artisan package:discover --ansi" 42 | ], 43 | "post-update-cmd": [ 44 | "@php artisan vendor:publish --tag=laravel-assets --ansi --force" 45 | ], 46 | "post-root-package-install": [ 47 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 48 | ], 49 | "post-create-project-cmd": [ 50 | "@php artisan key:generate --ansi" 51 | ] 52 | }, 53 | "extra": { 54 | "laravel": { 55 | "dont-discover": [] 56 | } 57 | }, 58 | "config": { 59 | "optimize-autoloader": true, 60 | "preferred-install": "dist", 61 | "sort-packages": true, 62 | "allow-plugins": { 63 | "pestphp/pest-plugin": true, 64 | "php-http/discovery": true 65 | } 66 | }, 67 | "minimum-stability": "stable", 68 | "prefer-stable": true 69 | } 70 | -------------------------------------------------------------------------------- /public/images/icon__retry.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/js/Pages/Profile/Show.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 58 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', 41 | 'port' => env('PUSHER_PORT', 443), 42 | 'scheme' => env('PUSHER_SCHEME', 'https'), 43 | 'encrypted' => true, 44 | 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', 45 | ], 46 | 'client_options' => [ 47 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html 48 | ], 49 | ], 50 | 51 | 'ably' => [ 52 | 'driver' => 'ably', 53 | 'key' => env('ABLY_KEY'), 54 | ], 55 | 56 | 'redis' => [ 57 | 'driver' => 'redis', 58 | 'connection' => 'default', 59 | ], 60 | 61 | 'log' => [ 62 | 'driver' => 'log', 63 | ], 64 | 65 | 'null' => [ 66 | 'driver' => 'null', 67 | ], 68 | 69 | ], 70 | 71 | ]; 72 | -------------------------------------------------------------------------------- /tests/Feature/TwoFactorAuthenticationSettingsTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Two factor authentication is not enabled.'); 18 | } 19 | 20 | $this->actingAs($user = User::factory()->create()); 21 | 22 | $this->withSession(['auth.password_confirmed_at' => time()]); 23 | 24 | $response = $this->post('/user/two-factor-authentication'); 25 | 26 | $this->assertNotNull($user->fresh()->two_factor_secret); 27 | $this->assertCount(8, $user->fresh()->recoveryCodes()); 28 | } 29 | 30 | public function test_recovery_codes_can_be_regenerated(): void 31 | { 32 | if (! Features::canManageTwoFactorAuthentication()) { 33 | $this->markTestSkipped('Two factor authentication is not enabled.'); 34 | } 35 | 36 | $this->actingAs($user = User::factory()->create()); 37 | 38 | $this->withSession(['auth.password_confirmed_at' => time()]); 39 | 40 | $this->post('/user/two-factor-authentication'); 41 | $this->post('/user/two-factor-recovery-codes'); 42 | 43 | $user = $user->fresh(); 44 | 45 | $this->post('/user/two-factor-recovery-codes'); 46 | 47 | $this->assertCount(8, $user->recoveryCodes()); 48 | $this->assertCount(8, array_diff($user->recoveryCodes(), $user->fresh()->recoveryCodes())); 49 | } 50 | 51 | public function test_two_factor_authentication_can_be_disabled(): void 52 | { 53 | if (! Features::canManageTwoFactorAuthentication()) { 54 | $this->markTestSkipped('Two factor authentication is not enabled.'); 55 | } 56 | 57 | $this->actingAs($user = User::factory()->create()); 58 | 59 | $this->withSession(['auth.password_confirmed_at' => time()]); 60 | 61 | $this->post('/user/two-factor-authentication'); 62 | 63 | $this->assertNotNull($user->fresh()->two_factor_secret); 64 | 65 | $this->delete('/user/two-factor-authentication'); 66 | 67 | $this->assertNull($user->fresh()->two_factor_secret); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /public/images/icon__retry-chat.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /public/images/icon__sound-max.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/Feature/EmailVerificationTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Email verification not enabled.'); 22 | } 23 | 24 | $user = User::factory()->withPersonalTeam()->unverified()->create(); 25 | 26 | $response = $this->actingAs($user)->get('/email/verify'); 27 | 28 | $response->assertStatus(200); 29 | } 30 | 31 | public function test_email_can_be_verified(): void 32 | { 33 | if (! Features::enabled(Features::emailVerification())) { 34 | $this->markTestSkipped('Email verification not enabled.'); 35 | } 36 | 37 | Event::fake(); 38 | 39 | $user = User::factory()->unverified()->create(); 40 | 41 | $verificationUrl = URL::temporarySignedRoute( 42 | 'verification.verify', 43 | now()->addMinutes(60), 44 | ['id' => $user->id, 'hash' => sha1($user->email)] 45 | ); 46 | 47 | $response = $this->actingAs($user)->get($verificationUrl); 48 | 49 | Event::assertDispatched(Verified::class); 50 | 51 | $this->assertTrue($user->fresh()->hasVerifiedEmail()); 52 | $response->assertRedirect(RouteServiceProvider::HOME.'?verified=1'); 53 | } 54 | 55 | public function test_email_can_not_verified_with_invalid_hash(): void 56 | { 57 | if (! Features::enabled(Features::emailVerification())) { 58 | $this->markTestSkipped('Email verification not enabled.'); 59 | } 60 | 61 | $user = User::factory()->unverified()->create(); 62 | 63 | $verificationUrl = URL::temporarySignedRoute( 64 | 'verification.verify', 65 | now()->addMinutes(60), 66 | ['id' => $user->id, 'hash' => sha1('wrong-email')] 67 | ); 68 | 69 | $this->actingAs($user)->get($verificationUrl); 70 | 71 | $this->assertFalse($user->fresh()->hasVerifiedEmail()); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /resources/js/Components/Dropdown.vue: -------------------------------------------------------------------------------- 1 | 48 | 49 | 80 | -------------------------------------------------------------------------------- /resources/js/Pages/Auth/VerifyEmail.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 63 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DISK', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure as many filesystem "disks" as you wish, and you 24 | | may even configure multiple disks of the same driver. Defaults have 25 | | been set up for each driver as an example of the required values. 26 | | 27 | | Supported Drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | 'throw' => false, 37 | ], 38 | 39 | 'public' => [ 40 | 'driver' => 'local', 41 | 'root' => storage_path('app/public'), 42 | 'url' => env('APP_URL').'/storage', 43 | 'visibility' => 'public', 44 | 'throw' => false, 45 | ], 46 | 47 | 's3' => [ 48 | 'driver' => 's3', 49 | 'key' => env('AWS_ACCESS_KEY_ID'), 50 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 51 | 'region' => env('AWS_DEFAULT_REGION'), 52 | 'bucket' => env('AWS_BUCKET'), 53 | 'url' => env('AWS_URL'), 54 | 'endpoint' => env('AWS_ENDPOINT'), 55 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 56 | 'throw' => false, 57 | ], 58 | 59 | ], 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Symbolic Links 64 | |-------------------------------------------------------------------------- 65 | | 66 | | Here you may configure the symbolic links that will be created when the 67 | | `storage:link` Artisan command is executed. The array keys should be 68 | | the locations of the links and the values should be their targets. 69 | | 70 | */ 71 | 72 | 'links' => [ 73 | public_path('storage') => storage_path('app/public'), 74 | ], 75 | 76 | ]; 77 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AVA - AI assistant 2 | 3 | ## Description 4 | The project aims to develop a Chatbot with talking avatar animation. The goal of the project is developing a Chatbot that can make real-time conversation with customer based on voice. 5 | 6 | The chatbot will have specific persona of busy doctor. 7 | 8 | The system consists of STT engine, Chat engine, TTS engine and avatar synthesis engine. 9 | 10 | The system will use Elevenlabs as TTS engine, Deepgram as STT, GPT-4 as Chat engine and D-ID for avatar synthesis. 11 | 12 | The system will use function calling feature from OpenAI to track the state of the conversation and generate responses based on the conversation state. 13 | 14 | The platform uses React for frontend development and Python FastAPI for backend, GitHub for version control. Docker will be employed for creating development environment. 15 | 16 | ## Solution 17 | To ensure the successful development of the project, the following solutions will be key: 18 | 19 | ### TTS Engine 20 | 21 | For the MVP product, we will use Elevenlabs as TTS engine to generate high-quality audios based on text. For MVP, we will implement streaming process to minimize delay of TTS engine. 22 | 23 | ### STT Engine 24 | 25 | For the MVP product, we will use Deepgram API for STT engine. We will streaming the STT process to improve system performance. 26 | 27 | ### Chat Engine 28 | We will use GPT-4-turbo model as chat engine to generate responses based on the user’s query. 29 | We will use function calling feature to track the state of the conversation. 30 | 31 | ### Avatar Synthesis 32 | The platform will use D-ID to synthesize avatars based on audio. We will implement streaming process to minimize delay of avatar synthesis. 33 | 34 | 35 | ## Development 36 | 37 | ### Branches of the repository, convention 38 | 39 | * Develop - Main branch for development 40 | * Fix - {#Task_ID}/fix/{fix_description} 41 | * Feature - {#Task_ID}/feature/{feature_description} 42 | * Master - Production version of the project 43 | * Release - release/{dd.mm.yyyy} 44 | * 45 | 46 | ### Issue tracker 47 | 48 | Gitlab's built-in [issue tracker](https://git.vivanti.eu/web/ava/-/issues) will be used in this project. 49 | 50 | 51 | ## Design 52 | 53 | Can be found in figma [here](https://www.figma.com/file/fJd1GptHW7SV8zrOqRGX2g/Ava-Landing?type=design&node-id=0-1&mode=design&t=5cbz1KFYz07kJSe5-0). 54 | 55 | 56 | ## Markup 57 | 58 | For HTML visit [markup branch](https://git.vivanti.eu/web/ava/-/tree/markup) 59 | 60 | ## Servers 61 | 62 | Staging is located at Ubuntu server, IP 188.166.121.50. 63 | 64 | ## How to Run 65 | 66 | 1. Change to valid api keys in `api.json` and `config.json` 67 | 2. Run `npm install` or `yarn install` and `npm run dev` or `yarn dev` 68 | 3. Open `localhost:3000` in the browser 69 | -------------------------------------------------------------------------------- /resources/css/login.css: -------------------------------------------------------------------------------- 1 | /* Font Weights */ 2 | /* Colors */ 3 | .ava-page.ava-page--login { 4 | display: flex; 5 | justify-content: center; 6 | align-items: center; 7 | width: 100%; 8 | height: 100vh; 9 | background-color: #626770; 10 | } 11 | .ava-page .login-block { 12 | display: flex; 13 | flex-direction: column; 14 | justify-content: flex-start; 15 | align-items: center; 16 | max-width: 568px; 17 | width: 100%; 18 | margin-inline: auto; 19 | border-radius: 16px; 20 | padding: 42px; 21 | background-color: #ffffff; 22 | } 23 | .ava-page .form { 24 | max-width: 100%; 25 | width: 100%; 26 | } 27 | .ava-page .form .form-control { 28 | margin: 0; 29 | box-shadow: none; 30 | display: flex; 31 | justify-content: center; 32 | align-items: flex-start; 33 | max-width: 100%; 34 | width: 100%; 35 | height: 48px; 36 | padding: 8px 13px; 37 | border-radius: 8px; 38 | border: 1px solid #D9D9D9; 39 | font-size: 16px; 40 | color: #414040; 41 | } 42 | .ava-page .form .form-control::placeholder, .ava-page .form .form-control::-ms-input-placeholder { 43 | font-size: 16px; 44 | color: #929292; 45 | opacity: 1; 46 | } 47 | .ava-page .form .form-group--checkbox label { 48 | display: flex; 49 | justify-content: center; 50 | align-items: center; 51 | gap: 16px; 52 | position: relative; 53 | cursor: pointer; 54 | user-select: none; 55 | } 56 | .ava-page .form .form-group--checkbox .form-control { 57 | position: absolute; 58 | top: 0; 59 | left: 0; 60 | width: 10px; 61 | height: 10px; 62 | pointer-events: none; 63 | opacity: 0; 64 | } 65 | .ava-page .form .form-group--checkbox .form-control-checkbox { 66 | display: flex; 67 | width: 24px; 68 | flex-shrink: 0; 69 | aspect-ratio: 1/1; 70 | border-radius: 4px; 71 | border: 4px solid #D9D9D9; 72 | position: relative; 73 | } 74 | .ava-page .form .form-group--checkbox .form-control-checkbox:after { 75 | content: ""; 76 | position: absolute; 77 | top: 50%; 78 | left: 50%; 79 | transform: translate(-50%, -50%); 80 | border-radius: 4px; 81 | display: flex; 82 | aspect-ratio: 1/1; 83 | width: 115%; 84 | background-color: transparent; 85 | } 86 | .ava-page .form .form-group--checkbox .form-control:checked + .form-control-checkbox:after { 87 | background-color: #563797; 88 | } 89 | .ava-page .form .form-message { 90 | width: 100%; 91 | max-width: 100%; 92 | text-align: center; 93 | color: #d00; 94 | display: none; 95 | } 96 | .ava-page .form .form-message.form-message--show { 97 | display: inline-block; 98 | } 99 | 100 | @media screen and (max-width: 1000px) { 101 | .ava-page.ava-page--login { 102 | padding: 0 16px; 103 | } 104 | .ava-page .login-block { 105 | padding: 32px 16px; 106 | } 107 | } 108 | 109 | /*# sourceMappingURL=login.css.map */ 110 | -------------------------------------------------------------------------------- /config/jetstream.php: -------------------------------------------------------------------------------- 1 | 'inertia', 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Jetstream Route Middleware 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may specify which middleware Jetstream will assign to the routes 27 | | that it registers with the application. When necessary, you may modify 28 | | these middleware; however, this default value is usually sufficient. 29 | | 30 | */ 31 | 32 | 'middleware' => ['web'], 33 | 34 | 'auth_session' => AuthenticateSession::class, 35 | 36 | /* 37 | |-------------------------------------------------------------------------- 38 | | Jetstream Guard 39 | |-------------------------------------------------------------------------- 40 | | 41 | | Here you may specify the authentication guard Jetstream will use while 42 | | authenticating users. This value should correspond with one of your 43 | | guards that is already present in your "auth" configuration file. 44 | | 45 | */ 46 | 47 | 'guard' => 'sanctum', 48 | 49 | /* 50 | |-------------------------------------------------------------------------- 51 | | Features 52 | |-------------------------------------------------------------------------- 53 | | 54 | | Some of Jetstream's features are optional. You may disable the features 55 | | by removing them from this array. You're free to only remove some of 56 | | these features or you can even remove all of these if you need to. 57 | | 58 | */ 59 | 60 | 'features' => [ 61 | // Features::termsAndPrivacyPolicy(), 62 | // Features::profilePhotos(), 63 | // Features::api(), 64 | // Features::teams(['invitations' => true]), 65 | Features::accountDeletion(), 66 | ], 67 | 68 | /* 69 | |-------------------------------------------------------------------------- 70 | | Profile Photo Disk 71 | |-------------------------------------------------------------------------- 72 | | 73 | | This configuration value determines the default disk that will be used 74 | | when storing profile photos for your application's users. Typically 75 | | this will be the "public" disk but you may adjust this if needed. 76 | | 77 | */ 78 | 79 | 'profile_photo_disk' => 'public', 80 | 81 | ]; 82 | -------------------------------------------------------------------------------- /resources/scss/parts/_variables.scss: -------------------------------------------------------------------------------- 1 | @use "sass:map"; 2 | @use "sass:list"; 3 | @use 'sass:math'; 4 | 5 | $fontWeights: ( 6 | thin: 100, 7 | 8 | extra: 200, 9 | extralight: 200, 10 | extra-light: 200, 11 | ultralight: 200, 12 | ultra-light: 200, 13 | 14 | light: 300, 15 | 16 | normal: 400, 17 | regular: 400, 18 | 19 | medium: 500, 20 | 21 | semi: 600, 22 | semibold: 600, 23 | semi-bold: 600, 24 | 25 | bold: 700, 26 | 27 | ultra: 800, 28 | ultrabold: 800, 29 | ultra-bold: 800, 30 | extrabold: 800, 31 | extra-bold: 800, 32 | 33 | heavy: 900, 34 | black: 900 35 | ); 36 | 37 | /* Font Weights */ 38 | $thin: 100; 39 | $hairline: 100; 40 | 41 | $extra: 200; 42 | $extralight: 200; 43 | $extra-light: 200; 44 | $ultralight: 200; 45 | $ultra-light: 200; 46 | 47 | $light: 300; 48 | 49 | $normal: 400; 50 | $regular: 400; 51 | 52 | $medium: 500; 53 | 54 | $semi: 600; 55 | $semibold: 600; 56 | $semi-bold: 600; 57 | 58 | $bold: 700; 59 | 60 | $ultra: 800; 61 | $ultrabold: 800; 62 | $ultra-bold: 800; 63 | $extrabold: 800; 64 | $extra-bold: 800; 65 | 66 | $heavy: 900; 67 | $black: 900; 68 | 69 | $fontWeightList: ( 70 | thin: 100, 71 | hairline: 100, 72 | extra: 200, 73 | extralight: 200, 74 | extra-light: 200, 75 | ultralight: 200, 76 | ultra-light: 200, 77 | light: 300, 78 | normal: 400, 79 | regular: 400, 80 | medium: 500, 81 | semi: 600, 82 | semibold: 600, 83 | semi-bold: 600, 84 | bold: 700, 85 | ultra: 800, 86 | ultrabold: 800, 87 | ultra-bold: 800, 88 | extrabold: 800, 89 | extra-bold: 800, 90 | heavy: 900, 91 | black: 900 92 | ); 93 | 94 | $sm: 1000px; 95 | $md: 1024px; 96 | $xl: 1340px; 97 | 98 | /* Colors */ 99 | $colorAccent: #563797; 100 | $colorDark: #414040; 101 | $colorWhite: #ffffff; 102 | 103 | $lhAuto: normal; 104 | $lhDefault: 1.3; 105 | $lhSmall: 1.2; 106 | 107 | $baseFontFamily: 'IBM Plex Sans'; 108 | $baseFontWeight: 400; 109 | $baseFontSize: 18px; 110 | $baseFontColor: $colorDark; 111 | 112 | $marginList: ( 113 | ( 114 | "desktop" : 'auto', 115 | "mobile" : 'auto', 116 | ), 117 | ( 118 | "desktop" : 0, 119 | "mobile" : 0, 120 | ), 121 | ); 122 | $mapItem2: (); 123 | $mapItem5: (); 124 | 125 | @for $i from 1 through 50 { 126 | $mapItem2: map.set($mapItem2, "desktop", $i * 2); 127 | $mapItem2: map.set($mapItem2, "mobile", math.ceil(($i * 2) - math.div(($i * 2), 3) )); 128 | $marginList: append($marginList, $mapItem2); 129 | @if ($i*5) % 2 != 0 { 130 | $mapItem5: map.set($mapItem5, "desktop", ($i * 5)); 131 | $mapItem5: map.set($mapItem5, "mobile", math.ceil(($i * 5) - math.div(($i * 5), 3) )); 132 | $marginList: append($marginList, $mapItem5); 133 | } 134 | } 135 | 136 | $fontSizeList: $marginList; 137 | 138 | -------------------------------------------------------------------------------- /tests/Feature/PasswordResetTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Password updates are not enabled.'); 20 | } 21 | 22 | $response = $this->get('/forgot-password'); 23 | 24 | $response->assertStatus(200); 25 | } 26 | 27 | public function test_reset_password_link_can_be_requested(): void 28 | { 29 | if (! Features::enabled(Features::resetPasswords())) { 30 | $this->markTestSkipped('Password updates are not enabled.'); 31 | } 32 | 33 | Notification::fake(); 34 | 35 | $user = User::factory()->create(); 36 | 37 | $response = $this->post('/forgot-password', [ 38 | 'email' => $user->email, 39 | ]); 40 | 41 | Notification::assertSentTo($user, ResetPassword::class); 42 | } 43 | 44 | public function test_reset_password_screen_can_be_rendered(): void 45 | { 46 | if (! Features::enabled(Features::resetPasswords())) { 47 | $this->markTestSkipped('Password updates are not enabled.'); 48 | } 49 | 50 | Notification::fake(); 51 | 52 | $user = User::factory()->create(); 53 | 54 | $response = $this->post('/forgot-password', [ 55 | 'email' => $user->email, 56 | ]); 57 | 58 | Notification::assertSentTo($user, ResetPassword::class, function (object $notification) { 59 | $response = $this->get('/reset-password/'.$notification->token); 60 | 61 | $response->assertStatus(200); 62 | 63 | return true; 64 | }); 65 | } 66 | 67 | public function test_password_can_be_reset_with_valid_token(): void 68 | { 69 | if (! Features::enabled(Features::resetPasswords())) { 70 | $this->markTestSkipped('Password updates are not enabled.'); 71 | } 72 | 73 | Notification::fake(); 74 | 75 | $user = User::factory()->create(); 76 | 77 | $response = $this->post('/forgot-password', [ 78 | 'email' => $user->email, 79 | ]); 80 | 81 | Notification::assertSentTo($user, ResetPassword::class, function (object $notification) use ($user) { 82 | $response = $this->post('/reset-password', [ 83 | 'token' => $notification->token, 84 | 'email' => $user->email, 85 | 'password' => 'password', 86 | 'password_confirmation' => 'password', 87 | ]); 88 | 89 | $response->assertSessionHasNoErrors(); 90 | 91 | return true; 92 | }); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /resources/js/Pages/Auth/ResetPassword.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 86 | -------------------------------------------------------------------------------- /resources/scss/login.scss: -------------------------------------------------------------------------------- 1 | @import "parts/variables"; 2 | @import "parts/mixins"; 3 | @import "parts/generators"; 4 | 5 | .ava-page { 6 | &.ava-page--login { 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | 11 | width: 100%; 12 | height: 100vh; 13 | 14 | background-color: #626770; 15 | } 16 | 17 | .login-block { 18 | display: flex; 19 | flex-direction: column; 20 | justify-content: flex-start; 21 | align-items: center; 22 | 23 | max-width: 568px; 24 | width: 100%; 25 | 26 | margin-inline: auto; 27 | border-radius: 16px; 28 | 29 | padding: 42px; 30 | background-color: $colorWhite; 31 | 32 | 33 | } 34 | 35 | .form { 36 | max-width: 100%; 37 | width: 100%; 38 | 39 | .form-control { 40 | margin: 0; 41 | box-shadow: none; 42 | 43 | display: flex; 44 | justify-content: center; 45 | align-items: flex-start; 46 | 47 | max-width: 100%; 48 | width: 100%; 49 | height: 48px; 50 | 51 | padding: 8px 13px; 52 | 53 | border-radius: 8px; 54 | border: 1px solid #D9D9D9; 55 | 56 | font-size: 16px; 57 | color: $colorDark; 58 | 59 | &::placeholder, &::-ms-input-placeholder { 60 | font-size: 16px; 61 | color: #929292; 62 | opacity: 1; 63 | } 64 | 65 | } 66 | 67 | .form-group--checkbox { 68 | label { 69 | display: flex; 70 | justify-content: center; 71 | align-items: center; 72 | gap: 16px; 73 | 74 | position: relative; 75 | cursor: pointer; 76 | user-select: none; 77 | } 78 | 79 | .form-control { 80 | position: absolute; 81 | top: 0; 82 | left: 0; 83 | 84 | width: 10px; 85 | height: 10px; 86 | 87 | pointer-events: none; 88 | opacity: 0; 89 | } 90 | 91 | .form-control-checkbox { 92 | display: flex; 93 | width: 24px; 94 | flex-shrink: 0; 95 | aspect-ratio: 1/1; 96 | 97 | border-radius: 4px; 98 | border: 4px solid #D9D9D9; 99 | 100 | position: relative; 101 | &:after { 102 | content: ''; 103 | 104 | position: absolute; 105 | top: 50%; 106 | left: 50%; 107 | transform: translate(-50%, -50%); 108 | border-radius: 4px; 109 | 110 | display: flex; 111 | aspect-ratio: 1/1; 112 | width: 115%; 113 | background-color: transparent; 114 | } 115 | } 116 | 117 | .form-control:checked + .form-control-checkbox { 118 | &:after { 119 | background-color: $colorAccent; 120 | } 121 | } 122 | 123 | } 124 | 125 | .form-message { 126 | width: 100%; 127 | max-width: 100%; 128 | text-align: center; 129 | color: #d00; 130 | 131 | display: none; 132 | &.form-message--show { 133 | display: inline-block; 134 | } 135 | } 136 | 137 | } 138 | } -------------------------------------------------------------------------------- /resources/js/Components/Banner.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 56 | -------------------------------------------------------------------------------- /resources/js/Components/Modal.vue: -------------------------------------------------------------------------------- 1 | 58 | 59 | 92 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | protected $middleware = [ 17 | // \App\Http\Middleware\TrustHosts::class, 18 | \App\Http\Middleware\TrustProxies::class, 19 | \Illuminate\Http\Middleware\HandleCors::class, 20 | \App\Http\Middleware\PreventRequestsDuringMaintenance::class, 21 | \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, 22 | \App\Http\Middleware\TrimStrings::class, 23 | \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, 24 | ]; 25 | 26 | /** 27 | * The application's route middleware groups. 28 | * 29 | * @var array> 30 | */ 31 | protected $middlewareGroups = [ 32 | 'web' => [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 37 | \App\Http\Middleware\VerifyCsrfToken::class, 38 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 39 | \App\Http\Middleware\HandleInertiaRequests::class, 40 | \Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets::class, 41 | ], 42 | 43 | 'api' => [ 44 | // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, 45 | \Illuminate\Routing\Middleware\ThrottleRequests::class.':api', 46 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 47 | ], 48 | ]; 49 | 50 | /** 51 | * The application's middleware aliases. 52 | * 53 | * Aliases may be used instead of class names to conveniently assign middleware to routes and groups. 54 | * 55 | * @var array 56 | */ 57 | protected $middlewareAliases = [ 58 | 'auth' => \App\Http\Middleware\Authenticate::class, 59 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 60 | 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, 61 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 62 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 63 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 64 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 65 | 'precognitive' => \Illuminate\Foundation\Http\Middleware\HandlePrecognitiveRequests::class, 66 | 'signed' => \App\Http\Middleware\ValidateSignature::class, 67 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 68 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 69 | ]; 70 | } 71 | -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- 1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( 19 | '%s%s', 20 | 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', 21 | Sanctum::currentApplicationUrlWithPort() 22 | ))), 23 | 24 | /* 25 | |-------------------------------------------------------------------------- 26 | | Sanctum Guards 27 | |-------------------------------------------------------------------------- 28 | | 29 | | This array contains the authentication guards that will be checked when 30 | | Sanctum is trying to authenticate a request. If none of these guards 31 | | are able to authenticate the request, Sanctum will use the bearer 32 | | token that's present on an incoming request for authentication. 33 | | 34 | */ 35 | 36 | 'guard' => ['web'], 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Expiration Minutes 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This value controls the number of minutes until an issued token will be 44 | | considered expired. This will override any values set in the token's 45 | | "expires_at" attribute, but first-party sessions are not affected. 46 | | 47 | */ 48 | 49 | 'expiration' => null, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Token Prefix 54 | |-------------------------------------------------------------------------- 55 | | 56 | | Sanctum can prefix new tokens in order to take advantage of numerous 57 | | security scanning initiatives maintained by open source platforms 58 | | that notify developers if they commit tokens into repositories. 59 | | 60 | | See: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning 61 | | 62 | */ 63 | 64 | 'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''), 65 | 66 | /* 67 | |-------------------------------------------------------------------------- 68 | | Sanctum Middleware 69 | |-------------------------------------------------------------------------- 70 | | 71 | | When authenticating your first-party SPA with Sanctum you may need to 72 | | customize some of the middleware Sanctum uses while processing the 73 | | request. You may change the middleware listed below as required. 74 | | 75 | */ 76 | 77 | 'middleware' => [ 78 | 'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class, 79 | 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 80 | 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 81 | ], 82 | 83 | ]; 84 | -------------------------------------------------------------------------------- /resources/js/Components/ApplicationLogo.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /resources/js/Pages/Auth/Login.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 99 | -------------------------------------------------------------------------------- /resources/js/Components/ConfirmsPassword.vue: -------------------------------------------------------------------------------- 1 | 72 | 73 | 119 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | | Supported drivers: "apc", "array", "database", "file", 30 | | "memcached", "redis", "dynamodb", "octane", "null" 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | 'lock_connection' => null, 50 | ], 51 | 52 | 'file' => [ 53 | 'driver' => 'file', 54 | 'path' => storage_path('framework/cache/data'), 55 | 'lock_path' => storage_path('framework/cache/data'), 56 | ], 57 | 58 | 'memcached' => [ 59 | 'driver' => 'memcached', 60 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 61 | 'sasl' => [ 62 | env('MEMCACHED_USERNAME'), 63 | env('MEMCACHED_PASSWORD'), 64 | ], 65 | 'options' => [ 66 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 67 | ], 68 | 'servers' => [ 69 | [ 70 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 71 | 'port' => env('MEMCACHED_PORT', 11211), 72 | 'weight' => 100, 73 | ], 74 | ], 75 | ], 76 | 77 | 'redis' => [ 78 | 'driver' => 'redis', 79 | 'connection' => 'cache', 80 | 'lock_connection' => 'default', 81 | ], 82 | 83 | 'dynamodb' => [ 84 | 'driver' => 'dynamodb', 85 | 'key' => env('AWS_ACCESS_KEY_ID'), 86 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 87 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 88 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 89 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 90 | ], 91 | 92 | 'octane' => [ 93 | 'driver' => 'octane', 94 | ], 95 | 96 | ], 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Cache Key Prefix 101 | |-------------------------------------------------------------------------- 102 | | 103 | | When utilizing the APC, database, memcached, Redis, or DynamoDB cache 104 | | stores there might be other applications using the same cache. For 105 | | that reason, you may prefix every cache key to avoid collisions. 106 | | 107 | */ 108 | 109 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), 110 | 111 | ]; 112 | -------------------------------------------------------------------------------- /resources/js/Pages/Auth/TwoFactorChallenge.vue: -------------------------------------------------------------------------------- 1 | 39 | 40 | 105 | -------------------------------------------------------------------------------- /resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue: -------------------------------------------------------------------------------- 1 | 39 | 40 | 101 | -------------------------------------------------------------------------------- /resources/js/Pages/Profile/Partials/DeleteUserForm.vue: -------------------------------------------------------------------------------- 1 | 39 | 40 | 103 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | 'after_commit' => false, 43 | ], 44 | 45 | 'beanstalkd' => [ 46 | 'driver' => 'beanstalkd', 47 | 'host' => 'localhost', 48 | 'queue' => 'default', 49 | 'retry_after' => 90, 50 | 'block_for' => 0, 51 | 'after_commit' => false, 52 | ], 53 | 54 | 'sqs' => [ 55 | 'driver' => 'sqs', 56 | 'key' => env('AWS_ACCESS_KEY_ID'), 57 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 58 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 59 | 'queue' => env('SQS_QUEUE', 'default'), 60 | 'suffix' => env('SQS_SUFFIX'), 61 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 62 | 'after_commit' => false, 63 | ], 64 | 65 | 'redis' => [ 66 | 'driver' => 'redis', 67 | 'connection' => 'default', 68 | 'queue' => env('REDIS_QUEUE', 'default'), 69 | 'retry_after' => 90, 70 | 'block_for' => null, 71 | 'after_commit' => false, 72 | ], 73 | 74 | ], 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Job Batching 79 | |-------------------------------------------------------------------------- 80 | | 81 | | The following options configure the database and table that store job 82 | | batching information. These options can be updated to any database 83 | | connection and table which has been defined by your application. 84 | | 85 | */ 86 | 87 | 'batching' => [ 88 | 'database' => env('DB_CONNECTION', 'mysql'), 89 | 'table' => 'job_batches', 90 | ], 91 | 92 | /* 93 | |-------------------------------------------------------------------------- 94 | | Failed Queue Jobs 95 | |-------------------------------------------------------------------------- 96 | | 97 | | These options configure the behavior of failed queue job logging so you 98 | | can control which database and table are used to store the jobs that 99 | | have failed. You may change them to any database / table you wish. 100 | | 101 | */ 102 | 103 | 'failed' => [ 104 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 105 | 'database' => env('DB_CONNECTION', 'mysql'), 106 | 'table' => 'failed_jobs', 107 | ], 108 | 109 | ]; 110 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | User Providers 48 | |-------------------------------------------------------------------------- 49 | | 50 | | All authentication drivers have a user provider. This defines how the 51 | | users are actually retrieved out of your database or other storage 52 | | mechanisms used by this application to persist your user's data. 53 | | 54 | | If you have multiple user tables or models you may configure multiple 55 | | sources which represent each model / table. These sources may then 56 | | be assigned to any extra authentication guards you have defined. 57 | | 58 | | Supported: "database", "eloquent" 59 | | 60 | */ 61 | 62 | 'providers' => [ 63 | 'users' => [ 64 | 'driver' => 'eloquent', 65 | 'model' => App\Models\User::class, 66 | ], 67 | 68 | // 'users' => [ 69 | // 'driver' => 'database', 70 | // 'table' => 'users', 71 | // ], 72 | ], 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Resetting Passwords 77 | |-------------------------------------------------------------------------- 78 | | 79 | | You may specify multiple password reset configurations if you have more 80 | | than one user table or model in the application and you want to have 81 | | separate password reset settings based on the specific user types. 82 | | 83 | | The expiry time is the number of minutes that each reset token will be 84 | | considered valid. This security feature keeps tokens short-lived so 85 | | they have less time to be guessed. You may change this as needed. 86 | | 87 | | The throttle setting is the number of seconds a user must wait before 88 | | generating more password reset tokens. This prevents the user from 89 | | quickly generating a very large amount of password reset tokens. 90 | | 91 | */ 92 | 93 | 'passwords' => [ 94 | 'users' => [ 95 | 'provider' => 'users', 96 | 'table' => 'password_reset_tokens', 97 | 'expire' => 60, 98 | 'throttle' => 60, 99 | ], 100 | ], 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Password Confirmation Timeout 105 | |-------------------------------------------------------------------------- 106 | | 107 | | Here you may define the amount of seconds before a password confirmation 108 | | times out and the user is prompted to re-enter their password via the 109 | | confirmation screen. By default, the timeout lasts for three hours. 110 | | 111 | */ 112 | 113 | 'password_timeout' => 10800, 114 | 115 | ]; 116 | --------------------------------------------------------------------------------