daevin 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/Daevin_test/.editorconfig +15 -0
- package/Daevin_test/.env.example +92 -0
- package/Daevin_test/.gitattributes +10 -0
- package/Daevin_test/CODE_OF_CONDUCT.md +3 -0
- package/Daevin_test/CONTRIBUTING.md +3 -0
- package/Daevin_test/LICENSE +21 -0
- package/Daevin_test/README.md +314 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/ApiLoginProxyForWebClientAction.php +52 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/ApiLogoutAction.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/ApiRefreshProxyForWebClientAction.php +47 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/ForgotPasswordAction.php +43 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/GetAuthenticatedUserAction.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/RegisterUserAction.php +39 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/ResetPasswordAction.php +61 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/SendVerificationEmailAction.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/VerifyEmailAction.php +43 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/WebLoginAction.php +46 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Actions/WebLogoutAction.php +17 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Classes/LoginCustomAttribute.php +97 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Configs/appSection-authentication.php +117 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Exceptions/EmailNotVerifiedException.php +12 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Exceptions/InvalidEmailVerificationDataException.php +12 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Exceptions/InvalidResetPasswordTokenException.php +12 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Exceptions/LoginFailedException.php +12 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Exceptions/RefreshTokenMissingException.php +12 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Mails/ForgotPassword.php +32 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Mails/Templates/forgot-password.blade.php +73 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Middlewares/RedirectIfAuthenticated.php +35 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Notifications/EmailVerified.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Notifications/PasswordReset.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Notifications/VerifyEmail.php +49 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Notifications/Welcome.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Providers/AuthServiceProvider.php +76 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Providers/MainServiceProvider.php +32 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Providers/MiddlewareServiceProvider.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/README.md +1 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tasks/CallOAuthServerTask.php +36 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tasks/CreatePasswordResetTokenTask.php +14 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tasks/CreateUserByCredentialsTask.php +34 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tasks/LoginTask.php +14 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tasks/MakeRefreshCookieTask.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tasks/SendVerificationEmailTask.php +16 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Stubs/oauth-private.key +51 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Stubs/oauth-public.key +14 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/TestCase.php +18 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/CreatePasswordResetTokenTaskTest.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/CreateUserByCredentialsTaskTest.php +42 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/ForgotPasswordActionTest.php +28 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/LoginCustomAttributeTest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/RedirectIfAuthenticatedMiddlewareTest.php +44 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/RegisterUserActionTest.php +64 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/ResetPasswordActionTest.php +83 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/SendVerificationEmailTaskTest.php +40 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Tests/Unit/WebLoginActionTest.php +75 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/Traits/AuthenticationTrait.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/ForgotPasswordController.php +24 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/GetAuthenticatedUserController.php +24 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/LoginProxyForWebClientController.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/LogoutController.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/RefreshProxyForWebClientController.php +35 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/RegisterUserController.php +24 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/ResetPasswordController.php +30 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/SendVerificationEmailController.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Controllers/VerifyEmailController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/ForgotPasswordRequest.php +50 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/GetAuthenticatedUserRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/LoginProxyPasswordGrantRequest.php +57 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/LogoutRequest.php +51 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/RefreshProxyRequest.php +51 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/RegisterUserRequest.php +61 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/ResetPasswordRequest.php +55 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/SendVerificationEmailRequest.php +56 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Requests/VerifyEmailRequest.php +51 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/ForgotPassword.v1.public.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/GetAuthenticatedUser.v1.private.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/LoginProxyForWebClient.v1.public.php +30 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/LoginUsingCredentialGrant.v1.public.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/LoginUsingPasswordGrant.v1.private.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/Logout.v1.public.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/RefreshProxyForWebClient.v1.public.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/RegisterUser.v1.private.php +38 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/ResetPassword.v1.public.php +37 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/SendVerificationEmail.v1.public.php +32 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Routes/VerifyEmail.v1.public.php +35 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/ApiTestCase.php +74 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ApiLoginProxyForWebClientTest.php +129 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ApiLogoutTest.php +28 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ApiRefreshProxyForWebClientTest.php +86 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ForgotPasswordTest.php +56 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/GetAuthenticatedUserTest.php +76 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/RegisterUserTest.php +208 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ResetPasswordTest.php +79 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/SendVerificationEmailTest.php +95 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/Stubs/oauth-private.key +51 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/Stubs/oauth-public.key +14 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/VerifyEmailTest.php +84 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Controllers/LoginController.php +39 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Controllers/LogoutController.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Requests/LoginRequest.php +54 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Requests/LogoutRequest.php +50 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Routes/GetLogin.v1.public.php +8 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Routes/PostLogin.v1.public.php +8 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Routes/PostLogout.php +7 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/UI/WEB/Views/login.blade.php +121 -0
- package/Daevin_test/app/Containers/AppSection/Authentication/composer.json +11 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/AssignRolesToUserAction.php +32 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/AttachPermissionsToRoleAction.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/AttachPermissionsToUserAction.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/CreatePermissionAction.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/CreateRoleAction.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/DeleteRoleAction.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/DetachPermissionsFromRoleAction.php +30 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/DetachPermissionsFromUserAction.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/FindPermissionAction.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/FindRoleAction.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/GetAllPermissionsAction.php +21 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/GetAllRolesAction.php +21 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/GetRolePermissionsAction.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/GetUserPermissionsAction.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/GetUserRolesAction.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/RevokeRolesFromUserAction.php +40 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/SyncPermissionsOnRoleAction.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Actions/SyncUserRolesAction.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Configs/appSection-authorization.php +24 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Configs/permission.php +161 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Factories/PermissionFactory.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Factories/RoleFactory.php +28 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Migrations/2016_12_29_201047_create_permission_tables.php +141 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Migrations/2017_04_22_122453_add_extra_fields_to_permissions_tale.php +30 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Migrations/2017_04_22_122522_add_extra_fields_to_roles_table.php +30 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Repositories/PermissionRepository.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Repositories/RoleRepository.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Seeders/AuthorizationDefaultUsersSeeder_4.php +36 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Seeders/AuthorizationGivePermissionsToRolesSeeder_3.php +24 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Seeders/AuthorizationPermissionsSeeder_1.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Data/Seeders/AuthorizationRolesSeeder_2.php +21 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Models/Permission.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Models/Role.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Providers/MainServiceProvider.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/README.md +1 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/AssignRolesToUserTask.php +21 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/CreatePermissionTask.php +41 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/CreateRoleTask.php +41 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/DeleteRoleTask.php +35 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/DetachPermissionsFromRoleTask.php +24 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/DetachPermissionsFromUserTask.php +24 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/FindPermissionTask.php +49 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/FindRoleTask.php +49 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/GetAllPermissionsTask.php +40 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/GetAllRolesTask.php +40 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tasks/RevokeRoleFromUserTask.php +21 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/TestCase.php +18 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/CreatePermissionTaskTest.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/CreateRoleTaskTest.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/DeleteRoleTaskTest.php +36 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/FindPermissionTaskTest.php +44 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/FindRoleTaskTest.php +44 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/PermissionFactoryTest.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/PermissionMigrationTest.php +95 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Tests/Unit/RoleFactoryTest.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Traits/AuthorizationTrait.php +11 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/Traits/IsResourceOwnerTrait.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/AssignRolesToUserController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/AttachPermissionsToRoleController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/AttachPermissionsToUserController.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/CreateRoleController.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/DeleteRoleController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/DetachPermissionsFromRoleController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/DetachPermissionsFromUserController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/FindPermissionController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/FindRoleController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/GetAllPermissionsController.php +28 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/GetAllRolesController.php +28 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/GetRolePermissionsController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/GetUserPermissionsController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/GetUserRolesController.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/RevokeRolesFromUserController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/SyncPermissionOnRoleController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Controllers/SyncUserRolesController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/AssignRolesToUserRequest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/AttachPermissionsToRoleRequest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/AttachPermissionsToUserRequest.php +53 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/CreateRoleRequest.php +47 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/DeleteRoleRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/DetachPermissionsFromRoleRequest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/DetachPermissionsFromUserRequest.php +53 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/FindPermissionRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/FindRoleRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/GetAllPermissionsRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/GetAllRolesRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/GetRolePermissionsRequest.php +51 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/GetUserPermissionsRequest.php +51 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/GetUserRolesRequest.php +51 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/RevokeRolesFromUserRequest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/SyncPermissionsOnRoleRequest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Requests/SyncUserRolesRequest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/AssignRolesToUser.v1.private.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/AttachPermissionsToRole.v1.private.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/AttachPermissionsToUser.v1.private.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/CreateRole.v1.private.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/DeleteRole.v1.private.php +28 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/DetachPermissionsFromRole.v1.private.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/DetachPermissionsFromUser.v1.private.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/FindPermission.v1.private.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/FindRole.v1.private.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/GetAllPermissions.v1.private.php +21 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/GetAllRoles.v1.private.php +21 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/GetRolePermissions.v1.private.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/GetUserPermissions.v1.private.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/GetUserRoles.v1.private.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/RevokeRolesFromUser.v1.private.php +29 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/SyncPermissionOnRole.v1.private.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/SyncUserRoles.v1.private.php +27 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/_permission.v1.public.php +25 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/_role.v1.public.php +43 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Routes/_userPermissions.v1.public.php +48 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/ApiTestCase.php +15 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AssignRolesToUserTest.php +71 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AttachPermissionToUserTest.php +114 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AttachPermissionsToRoleTest.php +115 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/CreateRoleTest.php +65 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DeleteRoleTest.php +40 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DetachPermissionFromUserTest.php +120 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DetachPermissionsFromRoleTest.php +115 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindPermissionTest.php +42 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindRoleTest.php +42 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllPermissionsTest.php +30 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllRolesTest.php +32 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetRolePermissionsTest.php +39 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetUserPermissionsTest.php +40 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetUserRolesTest.php +40 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/RevokeRolesFromUserTest.php +115 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncPermissionsOnRoleTest.php +92 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncUserRolesTest.php +93 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Transformers/PermissionTransformer.php +28 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/API/Transformers/RoleTransformer.php +34 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/WEB/Controllers/UnauthorizedController.php +19 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/WEB/Requests/UnauthorizedRequest.php +49 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/WEB/Routes/GetUnauthorized.php +7 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/UI/WEB/Views/unauthorized.blade.php +43 -0
- package/Daevin_test/app/Containers/AppSection/Authorization/composer.json +11 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Actions/CreatePostsAction.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Actions/DeletePostsAction.php +18 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Actions/FindPostsByIdAction.php +18 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Actions/GetAllPostsAction.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Actions/UpdatePostsAction.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Configs/appSection-posts.php +14 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Data/Factories/PostsFactory.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Data/Migrations/2023_2_19_55939_create_posts_migration.php +30 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Data/Repositories/PostsRepository.php +17 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Models/Posts.php +42 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Posts.json +7 -0
- package/Daevin_test/app/Containers/AppSection/Posts/README.md +194 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Tasks/CreatePostsTask.php +34 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Tasks/DeletePostsTask.php +35 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Tasks/FindPostsByIdTask.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Tasks/GetAllPostsTask.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Posts/Tasks/UpdatePostsTask.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Controllers/Controller.php +94 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Requests/CreatePostsRequest.php +54 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Requests/DeletePostsRequest.php +54 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Requests/FindPostsByIdRequest.php +53 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Requests/GetAllPostsRequest.php +54 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Requests/UpdatePostsRequest.php +56 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Routes/CreatePostsRoute.v1.private.php +52 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Routes/DeletePostsRoute.v1.private.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Routes/FindPostsByIdRoute.v1.private.php +52 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Routes/GetAllPostsRoute.v1.private.php +74 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Routes/UpdatePostsRoute.v1.private.php +52 -0
- package/Daevin_test/app/Containers/AppSection/Posts/UI/API/Transformers/PostsTransformer.php +49 -0
- package/Daevin_test/app/Containers/AppSection/Posts/composer.json +7 -0
- package/Daevin_test/app/Containers/AppSection/User/Actions/CreateAdminAction.php +39 -0
- package/Daevin_test/app/Containers/AppSection/User/Actions/DeleteUserAction.php +22 -0
- package/Daevin_test/app/Containers/AppSection/User/Actions/FindUserByIdAction.php +22 -0
- package/Daevin_test/app/Containers/AppSection/User/Actions/GetAllUsersAction.php +21 -0
- package/Daevin_test/app/Containers/AppSection/User/Actions/UpdateUserAction.php +33 -0
- package/Daevin_test/app/Containers/AppSection/User/Actions/UpdateUserPasswordAction.php +35 -0
- package/Daevin_test/app/Containers/AppSection/User/Configs/appSection-user.php +5 -0
- package/Daevin_test/app/Containers/AppSection/User/Data/Factories/UserFactory.php +44 -0
- package/Daevin_test/app/Containers/AppSection/User/Data/Migrations/2000_01_01_000001_create_users_table.php +34 -0
- package/Daevin_test/app/Containers/AppSection/User/Data/Migrations/2000_01_01_000002_create_password_resets_table.php +28 -0
- package/Daevin_test/app/Containers/AppSection/User/Data/Repositories/UserRepository.php +21 -0
- package/Daevin_test/app/Containers/AppSection/User/Data/Seeders/UserPermissionsSeeder_1.php +26 -0
- package/Daevin_test/app/Containers/AppSection/User/Models/User.php +58 -0
- package/Daevin_test/app/Containers/AppSection/User/Notifications/PasswordUpdatedNotification.php +28 -0
- package/Daevin_test/app/Containers/AppSection/User/Providers/MainServiceProvider.php +39 -0
- package/Daevin_test/app/Containers/AppSection/User/README.md +1 -0
- package/Daevin_test/app/Containers/AppSection/User/Tasks/DeleteUserTask.php +35 -0
- package/Daevin_test/app/Containers/AppSection/User/Tasks/FindUserByEmailTask.php +28 -0
- package/Daevin_test/app/Containers/AppSection/User/Tasks/FindUserByIdTask.php +31 -0
- package/Daevin_test/app/Containers/AppSection/User/Tasks/GetAllUsersTask.php +26 -0
- package/Daevin_test/app/Containers/AppSection/User/Tasks/UpdateUserTask.php +42 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/TestCase.php +18 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/Unit/CreateAdminActionTest.php +50 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/Unit/DeleteUserTaskTest.php +35 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/Unit/FindUserByIdTaskTest.php +35 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/Unit/PasswordResetsMigrationTest.php +28 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/Unit/UpdateUserTaskTest.php +52 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/Unit/UserFactoryTest.php +36 -0
- package/Daevin_test/app/Containers/AppSection/User/Tests/Unit/UsersMigrationTest.php +34 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Controllers/DeleteUserController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Controllers/FindUserByIdController.php +26 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Controllers/GetAllUsersController.php +28 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Controllers/UpdateUserController.php +30 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Controllers/UpdateUserPasswordController.php +30 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Requests/DeleteUserRequest.php +48 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Requests/FindUserByIdRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Requests/GetAllUsersRequest.php +45 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Requests/UpdateUserPasswordRequest.php +56 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Requests/UpdateUserRequest.php +50 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Routes/DeleteUser.v1.private.php +26 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Routes/FindUserById.v1.private.php +24 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Routes/GetAllUsers.v1.private.php +23 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Routes/UpdateUser.v1.private.php +27 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Routes/UpdateUserPassword.v1.private.php +36 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Routes/_user.v1.public.php +25 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Tests/ApiTestCase.php +15 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Tests/Functional/DeleteUserTest.php +50 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Tests/Functional/FindUserByIdTest.php +80 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php +88 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Tests/Functional/UpdateUserPasswordTest.php +126 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Tests/Functional/UpdateUserTest.php +80 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php +52 -0
- package/Daevin_test/app/Containers/AppSection/User/UI/CLI/Commands/CreateAdminCommand.php +37 -0
- package/Daevin_test/app/Containers/AppSection/User/composer.json +7 -0
- package/Daevin_test/app/Containers/AppSection/Users/Actions/CreateUsersAction.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Users/Actions/DeleteUsersAction.php +18 -0
- package/Daevin_test/app/Containers/AppSection/Users/Actions/FindUsersByIdAction.php +18 -0
- package/Daevin_test/app/Containers/AppSection/Users/Actions/GetAllUsersAction.php +23 -0
- package/Daevin_test/app/Containers/AppSection/Users/Actions/UpdateUsersAction.php +26 -0
- package/Daevin_test/app/Containers/AppSection/Users/Configs/appSection-users.php +14 -0
- package/Daevin_test/app/Containers/AppSection/Users/Data/Factories/UsersFactory.php +22 -0
- package/Daevin_test/app/Containers/AppSection/Users/Data/Migrations/2023_2_19_55939_create_users_migration.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Users/Data/Repositories/UsersRepository.php +17 -0
- package/Daevin_test/app/Containers/AppSection/Users/Models/Users.php +44 -0
- package/Daevin_test/app/Containers/AppSection/Users/README.md +194 -0
- package/Daevin_test/app/Containers/AppSection/Users/Tasks/CreateUsersTask.php +34 -0
- package/Daevin_test/app/Containers/AppSection/Users/Tasks/DeleteUsersTask.php +35 -0
- package/Daevin_test/app/Containers/AppSection/Users/Tasks/FindUsersByIdTask.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Users/Tasks/GetAllUsersTask.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Users/Tasks/UpdateUsersTask.php +33 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Controllers/Controller.php +94 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Requests/CreateUsersRequest.php +55 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Requests/DeleteUsersRequest.php +54 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Requests/FindUsersByIdRequest.php +53 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Requests/GetAllUsersRequest.php +54 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Requests/UpdateUsersRequest.php +57 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Routes/CreateUsersRoute.v1.private.php +53 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Routes/DeleteUsersRoute.v1.private.php +31 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Routes/FindUsersByIdRoute.v1.private.php +53 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Routes/GetAllUsersRoute.v1.private.php +75 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Routes/UpdateUsersRoute.v1.private.php +53 -0
- package/Daevin_test/app/Containers/AppSection/Users/UI/API/Transformers/UsersTransformer.php +49 -0
- package/Daevin_test/app/Containers/AppSection/Users/Users.json +7 -0
- package/Daevin_test/app/Containers/AppSection/Users/composer.json +7 -0
- package/Daevin_test/app/Ship/Broadcasts/channels.php +16 -0
- package/Daevin_test/app/Ship/Commands/HelloWorldCommand.php +32 -0
- package/Daevin_test/app/Ship/Commands/closures.php +19 -0
- package/Daevin_test/app/Ship/Configs/apiato.php +185 -0
- package/Daevin_test/app/Ship/Configs/debugbar.php +275 -0
- package/Daevin_test/app/Ship/Configs/fractal.php +43 -0
- package/Daevin_test/app/Ship/Configs/hashids.php +54 -0
- package/Daevin_test/app/Ship/Configs/ide-helper.php +319 -0
- package/Daevin_test/app/Ship/Configs/notification.php +16 -0
- package/Daevin_test/app/Ship/Configs/repository.php +250 -0
- package/Daevin_test/app/Ship/Contracts/MustVerifyEmail.php +14 -0
- package/Daevin_test/app/Ship/Criterias/CreatedTodayCriteria.php +15 -0
- package/Daevin_test/app/Ship/Criterias/GroupByCriteria.php +21 -0
- package/Daevin_test/app/Ship/Criterias/IsNullCriteria.php +21 -0
- package/Daevin_test/app/Ship/Criterias/NotNullCriteria.php +21 -0
- package/Daevin_test/app/Ship/Criterias/OrderByCreationDateAscendingCriteria.php +14 -0
- package/Daevin_test/app/Ship/Criterias/OrderByCreationDateDescendingCriteria.php +14 -0
- package/Daevin_test/app/Ship/Criterias/OrderByFieldCriteria.php +37 -0
- package/Daevin_test/app/Ship/Criterias/OrderByNameCriteria.php +14 -0
- package/Daevin_test/app/Ship/Criterias/OrderByUpdateDateAscendingCriteria.php +14 -0
- package/Daevin_test/app/Ship/Criterias/OrderByUpdateDateDescendingCriteria.php +14 -0
- package/Daevin_test/app/Ship/Criterias/ThisBetweenDatesCriteria.php +21 -0
- package/Daevin_test/app/Ship/Criterias/ThisEqualThatCriteria.php +20 -0
- package/Daevin_test/app/Ship/Criterias/ThisLikeThatCriteria.php +35 -0
- package/Daevin_test/app/Ship/Criterias/ThisUserCriteria.php +19 -0
- package/Daevin_test/app/Ship/Events/.gitkeep +0 -0
- package/Daevin_test/app/Ship/Exceptions/CreateResourceFailedException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/DeleteResourceFailedException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/EmailIsMissedException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/Handlers/ExceptionsHandler.php +107 -0
- package/Daevin_test/app/Ship/Exceptions/InternalErrorException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/NotAuthorizedResourceException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/NotFoundException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/NotImplementedException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/UnsupportedFractalSerializerException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/UpdateResourceFailedException.php +12 -0
- package/Daevin_test/app/Ship/Exceptions/ValidationFailedException.php +12 -0
- package/Daevin_test/app/Ship/Generators/CustomStubs/.gitkeep +0 -0
- package/Daevin_test/app/Ship/Helpers/helpers.php +12 -0
- package/Daevin_test/app/Ship/Kernels/ConsoleKernel.php +46 -0
- package/Daevin_test/app/Ship/Kernels/HttpKernel.php +113 -0
- package/Daevin_test/app/Ship/Listeners/.gitkeep +0 -0
- package/Daevin_test/app/Ship/Mails/.gitkeep +0 -0
- package/Daevin_test/app/Ship/Mails/Templates/.gitkeep +0 -0
- package/Daevin_test/app/Ship/Middlewares/Authenticate.php +16 -0
- package/Daevin_test/app/Ship/Middlewares/EncryptCookies.php +17 -0
- package/Daevin_test/app/Ship/Middlewares/PreventRequestsDuringMaintenance.php +17 -0
- package/Daevin_test/app/Ship/Middlewares/TrimStrings.php +19 -0
- package/Daevin_test/app/Ship/Middlewares/TrustHosts.php +20 -0
- package/Daevin_test/app/Ship/Middlewares/TrustProxies.php +28 -0
- package/Daevin_test/app/Ship/Middlewares/VerifyCsrfToken.php +17 -0
- package/Daevin_test/app/Ship/Migrations/2017_09_12_174826_create_notifications_table.php +35 -0
- package/Daevin_test/app/Ship/Migrations/2019_08_19_000000_create_failed_jobs_table.php +36 -0
- package/Daevin_test/app/Ship/Migrations/2021_03_01_150940_create_jobs_table.php +39 -0
- package/Daevin_test/app/Ship/Notifications/.gitkeep +0 -0
- package/Daevin_test/app/Ship/Parents/Actions/Action.php +10 -0
- package/Daevin_test/app/Ship/Parents/Actions/SubAction.php +10 -0
- package/Daevin_test/app/Ship/Parents/Commands/ConsoleCommand.php +10 -0
- package/Daevin_test/app/Ship/Parents/Controllers/ApiController.php +10 -0
- package/Daevin_test/app/Ship/Parents/Controllers/WebController.php +10 -0
- package/Daevin_test/app/Ship/Parents/Criterias/Criteria.php +10 -0
- package/Daevin_test/app/Ship/Parents/Events/Event.php +10 -0
- package/Daevin_test/app/Ship/Parents/Exceptions/Exception.php +10 -0
- package/Daevin_test/app/Ship/Parents/Factories/Factory.php +10 -0
- package/Daevin_test/app/Ship/Parents/Jobs/Job.php +25 -0
- package/Daevin_test/app/Ship/Parents/Listeners/Listener.php +10 -0
- package/Daevin_test/app/Ship/Parents/Mails/Mail.php +10 -0
- package/Daevin_test/app/Ship/Parents/Middlewares/Middleware.php +10 -0
- package/Daevin_test/app/Ship/Parents/Models/Model.php +11 -0
- package/Daevin_test/app/Ship/Parents/Models/UserModel.php +17 -0
- package/Daevin_test/app/Ship/Parents/Notifications/Notification.php +10 -0
- package/Daevin_test/app/Ship/Parents/Policies/Policy.php +26 -0
- package/Daevin_test/app/Ship/Parents/Providers/AuthServiceProvider.php +20 -0
- package/Daevin_test/app/Ship/Parents/Providers/BroadcastServiceProvider.php +26 -0
- package/Daevin_test/app/Ship/Parents/Providers/EventServiceProvider.php +40 -0
- package/Daevin_test/app/Ship/Parents/Providers/MainServiceProvider.php +24 -0
- package/Daevin_test/app/Ship/Parents/Providers/MiddlewareServiceProvider.php +16 -0
- package/Daevin_test/app/Ship/Parents/Providers/RouteServiceProvider.php +24 -0
- package/Daevin_test/app/Ship/Parents/Repositories/Repository.php +10 -0
- package/Daevin_test/app/Ship/Parents/Requests/Request.php +10 -0
- package/Daevin_test/app/Ship/Parents/Seeders/Seeder.php +10 -0
- package/Daevin_test/app/Ship/Parents/Tasks/Task.php +10 -0
- package/Daevin_test/app/Ship/Parents/Tests/PhpUnit/TestCase.php +51 -0
- package/Daevin_test/app/Ship/Parents/Transformers/Transformer.php +25 -0
- package/Daevin_test/app/Ship/Parents/Values/Value.php +9 -0
- package/Daevin_test/app/Ship/Providers/RouteServiceProvider.php +35 -0
- package/Daevin_test/app/Ship/Providers/ShipProvider.php +44 -0
- package/Daevin_test/app/Ship/Seeders/SeedDeploymentData.php +18 -0
- package/Daevin_test/app/Ship/Seeders/SeedTestingData.php +18 -0
- package/Daevin_test/app/Ship/Tests/TestCase.php +10 -0
- package/Daevin_test/app/Ship/composer.json +21 -0
- package/Daevin_test/artisan +53 -0
- package/Daevin_test/bootstrap/app.php +55 -0
- package/Daevin_test/bootstrap/cache/.gitignore +2 -0
- package/Daevin_test/composer.json +112 -0
- package/Daevin_test/composer.lock +12696 -0
- package/Daevin_test/config/app.php +206 -0
- package/Daevin_test/config/auth.php +117 -0
- package/Daevin_test/config/broadcasting.php +67 -0
- package/Daevin_test/config/cache.php +110 -0
- package/Daevin_test/config/cors.php +34 -0
- package/Daevin_test/config/database.php +151 -0
- package/Daevin_test/config/filesystems.php +76 -0
- package/Daevin_test/config/hashing.php +52 -0
- package/Daevin_test/config/logging.php +119 -0
- package/Daevin_test/config/mail.php +117 -0
- package/Daevin_test/config/queue.php +93 -0
- package/Daevin_test/config/services.php +34 -0
- package/Daevin_test/config/session.php +201 -0
- package/Daevin_test/config/view.php +36 -0
- package/Daevin_test/database/factories/ModelFactory.php +4 -0
- package/Daevin_test/database/migrations/.gitkeep +0 -0
- package/Daevin_test/database/seeders/DatabaseSeeder.php +24 -0
- package/Daevin_test/lang/ar/auth.php +19 -0
- package/Daevin_test/lang/ar/pagination.php +19 -0
- package/Daevin_test/lang/ar/passwords.php +22 -0
- package/Daevin_test/lang/ar/validation.php +149 -0
- package/Daevin_test/lang/en/auth.php +20 -0
- package/Daevin_test/lang/en/pagination.php +19 -0
- package/Daevin_test/lang/en/passwords.php +22 -0
- package/Daevin_test/lang/en/validation.php +169 -0
- package/Daevin_test/lang/es/auth.php +19 -0
- package/Daevin_test/lang/es/pagination.php +19 -0
- package/Daevin_test/lang/es/passwords.php +22 -0
- package/Daevin_test/lang/es/validation.php +149 -0
- package/Daevin_test/lang/fa/auth.php +18 -0
- package/Daevin_test/lang/fa/pagination.php +17 -0
- package/Daevin_test/lang/fa/passwords.php +20 -0
- package/Daevin_test/lang/fa/validation.php +182 -0
- package/Daevin_test/lang/fr/auth.php +19 -0
- package/Daevin_test/lang/fr/pagination.php +19 -0
- package/Daevin_test/lang/fr/passwords.php +22 -0
- package/Daevin_test/lang/fr/validation.php +149 -0
- package/Daevin_test/package-lock.json +10031 -0
- package/Daevin_test/package.json +19 -0
- package/Daevin_test/php_cs.dist.php +39 -0
- package/Daevin_test/phpspec.yml +5 -0
- package/Daevin_test/phpunit.xml +38 -0
- package/Daevin_test/psalm.dist.xml +18 -0
- package/Daevin_test/public/.htaccess +21 -0
- package/Daevin_test/public/favicon.ico +0 -0
- package/Daevin_test/public/index.php +55 -0
- package/Daevin_test/public/robots.txt +2 -0
- package/Daevin_test/public/web.config +28 -0
- package/Daevin_test/resources/css/app.css +0 -0
- package/Daevin_test/resources/js/app.js +1 -0
- package/Daevin_test/resources/js/bootstrap.js +28 -0
- package/Daevin_test/resources/views/.gitkeep +0 -0
- package/Daevin_test/server.php +21 -0
- package/Daevin_test/storage/app/.gitignore +3 -0
- package/Daevin_test/storage/app/public/.gitignore +2 -0
- package/Daevin_test/storage/debugbar/.gitignore +2 -0
- package/Daevin_test/storage/framework/cache/.gitignore +2 -0
- package/Daevin_test/storage/framework/sessions/.gitignore +2 -0
- package/Daevin_test/storage/framework/testing/.gitignore +2 -0
- package/Daevin_test/storage/framework/views/.gitignore +2 -0
- package/Daevin_test/storage/logs/.gitignore +2 -0
- package/Daevin_test/webpack.mix.js +17 -0
- package/bin/classes/Apiato/index.js +208 -0
- package/bin/classes/Containers/Action.js +169 -0
- package/bin/classes/Containers/ComposerJSON.js +27 -0
- package/bin/classes/Containers/Config.js +39 -0
- package/bin/classes/Containers/Controller.js +120 -0
- package/bin/classes/Containers/Factory.js +47 -0
- package/bin/classes/Containers/Migration.js +80 -0
- package/bin/classes/Containers/Model.js +126 -0
- package/bin/classes/Containers/ReadMe.js +212 -0
- package/bin/classes/Containers/Repository.js +54 -0
- package/bin/classes/Containers/Request.js +341 -0
- package/bin/classes/Containers/Route.js +336 -0
- package/bin/classes/Containers/Task.js +225 -0
- package/bin/classes/Containers/Transformer.js +94 -0
- package/bin/classes/Helpers.js +150 -0
- package/bin/classes/tes.js +0 -0
- package/bin/constants.js +11 -0
- package/bin/core/output.json +13 -0
- package/bin/core/schemaToSql.js +118 -0
- package/bin/core/sqlToSchema.js +206 -0
- package/bin/index.js +103 -0
- package/dbconfig.json +74 -0
- package/package.json +39 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Default Filesystem Disk
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| Here you may specify the default filesystem disk that should be used
|
11
|
+
| by the framework. The "local" disk, as well as a variety of cloud
|
12
|
+
| based disks are available to your application. Just store away!
|
13
|
+
|
|
14
|
+
*/
|
15
|
+
|
16
|
+
'default' => 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
|
+
];
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Default Hash Driver
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| This option controls the default hash driver that will be used to hash
|
11
|
+
| passwords for your application. By default, the bcrypt algorithm is
|
12
|
+
| used; however, you remain free to modify this option if you wish.
|
13
|
+
|
|
14
|
+
| Supported: "bcrypt", "argon", "argon2id"
|
15
|
+
|
|
16
|
+
*/
|
17
|
+
|
18
|
+
'driver' => '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', 10),
|
33
|
+
],
|
34
|
+
|
35
|
+
/*
|
36
|
+
|--------------------------------------------------------------------------
|
37
|
+
| Argon Options
|
38
|
+
|--------------------------------------------------------------------------
|
39
|
+
|
|
40
|
+
| Here you may specify the configuration options that should be used when
|
41
|
+
| passwords are hashed using the Argon algorithm. These will allow you
|
42
|
+
| to control the amount of time it takes to hash the given password.
|
43
|
+
|
|
44
|
+
*/
|
45
|
+
|
46
|
+
'argon' => [
|
47
|
+
'memory' => 65536,
|
48
|
+
'threads' => 1,
|
49
|
+
'time' => 4,
|
50
|
+
],
|
51
|
+
|
52
|
+
];
|
@@ -0,0 +1,119 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
use Monolog\Handler\NullHandler;
|
4
|
+
use Monolog\Handler\StreamHandler;
|
5
|
+
use Monolog\Handler\SyslogUdpHandler;
|
6
|
+
|
7
|
+
return [
|
8
|
+
|
9
|
+
/*
|
10
|
+
|--------------------------------------------------------------------------
|
11
|
+
| Default Log Channel
|
12
|
+
|--------------------------------------------------------------------------
|
13
|
+
|
|
14
|
+
| This option defines the default log channel that gets used when writing
|
15
|
+
| messages to the logs. The name specified in this option should match
|
16
|
+
| one of the channels defined in the "channels" configuration array.
|
17
|
+
|
|
18
|
+
*/
|
19
|
+
|
20
|
+
'default' => env('LOG_CHANNEL', 'stack'),
|
21
|
+
|
22
|
+
/*
|
23
|
+
|--------------------------------------------------------------------------
|
24
|
+
| Deprecations Log Channel
|
25
|
+
|--------------------------------------------------------------------------
|
26
|
+
|
|
27
|
+
| This option controls the log channel that should be used to log warnings
|
28
|
+
| regarding deprecated PHP and library features. This allows you to get
|
29
|
+
| your application ready for upcoming major versions of dependencies.
|
30
|
+
|
|
31
|
+
*/
|
32
|
+
|
33
|
+
'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
|
34
|
+
|
35
|
+
/*
|
36
|
+
|--------------------------------------------------------------------------
|
37
|
+
| Log Channels
|
38
|
+
|--------------------------------------------------------------------------
|
39
|
+
|
|
40
|
+
| Here you may configure the log channels for your application. Out of
|
41
|
+
| the box, Laravel uses the Monolog PHP logging library. This gives
|
42
|
+
| you a variety of powerful log handlers / formatters to utilize.
|
43
|
+
|
|
44
|
+
| Available Drivers: "single", "daily", "slack", "syslog",
|
45
|
+
| "errorlog", "monolog",
|
46
|
+
| "custom", "stack"
|
47
|
+
|
|
48
|
+
*/
|
49
|
+
|
50
|
+
'channels' => [
|
51
|
+
'stack' => [
|
52
|
+
'driver' => 'stack',
|
53
|
+
'channels' => ['single'],
|
54
|
+
'ignore_exceptions' => false,
|
55
|
+
],
|
56
|
+
|
57
|
+
'single' => [
|
58
|
+
'driver' => 'single',
|
59
|
+
'path' => storage_path('logs/laravel.log'),
|
60
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
61
|
+
],
|
62
|
+
|
63
|
+
'daily' => [
|
64
|
+
'driver' => 'daily',
|
65
|
+
'path' => storage_path('logs/laravel.log'),
|
66
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
67
|
+
'days' => 14,
|
68
|
+
],
|
69
|
+
|
70
|
+
'slack' => [
|
71
|
+
'driver' => 'slack',
|
72
|
+
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
73
|
+
'username' => 'Laravel Log',
|
74
|
+
'emoji' => ':boom:',
|
75
|
+
'level' => env('LOG_LEVEL', 'critical'),
|
76
|
+
],
|
77
|
+
|
78
|
+
'papertrail' => [
|
79
|
+
'driver' => 'monolog',
|
80
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
81
|
+
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
|
82
|
+
'handler_with' => [
|
83
|
+
'host' => env('PAPERTRAIL_URL'),
|
84
|
+
'port' => env('PAPERTRAIL_PORT'),
|
85
|
+
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
|
86
|
+
],
|
87
|
+
],
|
88
|
+
|
89
|
+
'stderr' => [
|
90
|
+
'driver' => 'monolog',
|
91
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
92
|
+
'handler' => StreamHandler::class,
|
93
|
+
'formatter' => env('LOG_STDERR_FORMATTER'),
|
94
|
+
'with' => [
|
95
|
+
'stream' => 'php://stderr',
|
96
|
+
],
|
97
|
+
],
|
98
|
+
|
99
|
+
'syslog' => [
|
100
|
+
'driver' => 'syslog',
|
101
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
102
|
+
],
|
103
|
+
|
104
|
+
'errorlog' => [
|
105
|
+
'driver' => 'errorlog',
|
106
|
+
'level' => env('LOG_LEVEL', 'debug'),
|
107
|
+
],
|
108
|
+
|
109
|
+
'null' => [
|
110
|
+
'driver' => 'monolog',
|
111
|
+
'handler' => NullHandler::class,
|
112
|
+
],
|
113
|
+
|
114
|
+
'emergency' => [
|
115
|
+
'path' => storage_path('logs/laravel.log'),
|
116
|
+
],
|
117
|
+
],
|
118
|
+
|
119
|
+
];
|
@@ -0,0 +1,117 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Default Mailer
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| This option controls the default mailer that is used to send any email
|
11
|
+
| messages sent by your application. Alternative mailers may be setup
|
12
|
+
| and used as needed; however, this mailer will be used by default.
|
13
|
+
|
|
14
|
+
*/
|
15
|
+
|
16
|
+
'default' => env('MAIL_MAILER', 'smtp'),
|
17
|
+
|
18
|
+
/*
|
19
|
+
|--------------------------------------------------------------------------
|
20
|
+
| Mailer Configurations
|
21
|
+
|--------------------------------------------------------------------------
|
22
|
+
|
|
23
|
+
| Here you may configure all of the mailers used by your application plus
|
24
|
+
| their respective settings. Several examples have been configured for
|
25
|
+
| you and you are free to add your own as your application requires.
|
26
|
+
|
|
27
|
+
| Laravel supports a variety of mail "transport" drivers to be used while
|
28
|
+
| sending an e-mail. You will specify which one you are using for your
|
29
|
+
| mailers below. You are free to add additional mailers as required.
|
30
|
+
|
|
31
|
+
| Supported: "smtp", "sendmail", "mailgun", "ses",
|
32
|
+
| "postmark", "log", "array", "failover"
|
33
|
+
|
|
34
|
+
*/
|
35
|
+
|
36
|
+
'mailers' => [
|
37
|
+
'smtp' => [
|
38
|
+
'transport' => 'smtp',
|
39
|
+
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
|
40
|
+
'port' => env('MAIL_PORT', 587),
|
41
|
+
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
|
42
|
+
'username' => env('MAIL_USERNAME'),
|
43
|
+
'password' => env('MAIL_PASSWORD'),
|
44
|
+
'timeout' => null,
|
45
|
+
],
|
46
|
+
|
47
|
+
'ses' => [
|
48
|
+
'transport' => 'ses',
|
49
|
+
],
|
50
|
+
|
51
|
+
'mailgun' => [
|
52
|
+
'transport' => 'mailgun',
|
53
|
+
],
|
54
|
+
|
55
|
+
'postmark' => [
|
56
|
+
'transport' => 'postmark',
|
57
|
+
],
|
58
|
+
|
59
|
+
'sendmail' => [
|
60
|
+
'transport' => 'sendmail',
|
61
|
+
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
|
62
|
+
],
|
63
|
+
|
64
|
+
'log' => [
|
65
|
+
'transport' => 'log',
|
66
|
+
'channel' => env('MAIL_LOG_CHANNEL'),
|
67
|
+
],
|
68
|
+
|
69
|
+
'array' => [
|
70
|
+
'transport' => 'array',
|
71
|
+
],
|
72
|
+
|
73
|
+
'failover' => [
|
74
|
+
'transport' => 'failover',
|
75
|
+
'mailers' => [
|
76
|
+
'smtp',
|
77
|
+
'log',
|
78
|
+
],
|
79
|
+
],
|
80
|
+
],
|
81
|
+
|
82
|
+
/*
|
83
|
+
|--------------------------------------------------------------------------
|
84
|
+
| Global "From" Address
|
85
|
+
|--------------------------------------------------------------------------
|
86
|
+
|
|
87
|
+
| You may wish for all e-mails sent by your application to be sent from
|
88
|
+
| the same address. Here, you may specify a name and address that is
|
89
|
+
| used globally for all e-mails that are sent by your application.
|
90
|
+
|
|
91
|
+
*/
|
92
|
+
|
93
|
+
'from' => [
|
94
|
+
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
95
|
+
'name' => env('MAIL_FROM_NAME', 'Example'),
|
96
|
+
],
|
97
|
+
|
98
|
+
/*
|
99
|
+
|--------------------------------------------------------------------------
|
100
|
+
| Markdown Mail Settings
|
101
|
+
|--------------------------------------------------------------------------
|
102
|
+
|
|
103
|
+
| If you are using Markdown based email rendering, you may configure your
|
104
|
+
| theme and component paths here, allowing you to customize the design
|
105
|
+
| of the emails. Or, you may simply stick with the Laravel defaults!
|
106
|
+
|
|
107
|
+
*/
|
108
|
+
|
109
|
+
'markdown' => [
|
110
|
+
'theme' => 'default',
|
111
|
+
|
112
|
+
'paths' => [
|
113
|
+
resource_path('views/vendor/mail'),
|
114
|
+
],
|
115
|
+
],
|
116
|
+
|
117
|
+
];
|
@@ -0,0 +1,93 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Default Queue Connection Name
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| Laravel's queue API supports an assortment of back-ends via a single
|
11
|
+
| API, giving you convenient access to each back-end using the same
|
12
|
+
| syntax for every one. Here you may define a default connection.
|
13
|
+
|
|
14
|
+
*/
|
15
|
+
|
16
|
+
'default' => 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
|
+
| Failed Queue Jobs
|
79
|
+
|--------------------------------------------------------------------------
|
80
|
+
|
|
81
|
+
| These options configure the behavior of failed queue job logging so you
|
82
|
+
| can control which database and table are used to store the jobs that
|
83
|
+
| have failed. You may change them to any database / table you wish.
|
84
|
+
|
|
85
|
+
*/
|
86
|
+
|
87
|
+
'failed' => [
|
88
|
+
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
|
89
|
+
'database' => env('DB_CONNECTION', 'mysql'),
|
90
|
+
'table' => 'failed_jobs',
|
91
|
+
],
|
92
|
+
|
93
|
+
];
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
return [
|
4
|
+
|
5
|
+
/*
|
6
|
+
|--------------------------------------------------------------------------
|
7
|
+
| Third Party Services
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
|
|
10
|
+
| This file is for storing the credentials for third party services such
|
11
|
+
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
12
|
+
| location for this type of information, allowing packages to have
|
13
|
+
| a conventional file to locate the various service credentials.
|
14
|
+
|
|
15
|
+
*/
|
16
|
+
|
17
|
+
'mailgun' => [
|
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
|
+
];
|
@@ -0,0 +1,201 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
use Illuminate\Support\Str;
|
4
|
+
|
5
|
+
return [
|
6
|
+
|
7
|
+
/*
|
8
|
+
|--------------------------------------------------------------------------
|
9
|
+
| Default Session Driver
|
10
|
+
|--------------------------------------------------------------------------
|
11
|
+
|
|
12
|
+
| This option controls the default session "driver" that will be used on
|
13
|
+
| requests. By default, we will use the lightweight native driver but
|
14
|
+
| you may specify any of the other wonderful drivers provided here.
|
15
|
+
|
|
16
|
+
| Supported: "file", "cookie", "database", "apc",
|
17
|
+
| "memcached", "redis", "dynamodb", "array"
|
18
|
+
|
|
19
|
+
*/
|
20
|
+
|
21
|
+
'driver' => env('SESSION_DRIVER', 'file'),
|
22
|
+
|
23
|
+
/*
|
24
|
+
|--------------------------------------------------------------------------
|
25
|
+
| Session Lifetime
|
26
|
+
|--------------------------------------------------------------------------
|
27
|
+
|
|
28
|
+
| Here you may specify the number of minutes that you wish the session
|
29
|
+
| to be allowed to remain idle before it expires. If you want them
|
30
|
+
| to immediately expire on the browser closing, set that option.
|
31
|
+
|
|
32
|
+
*/
|
33
|
+
|
34
|
+
'lifetime' => env('SESSION_LIFETIME', 120),
|
35
|
+
|
36
|
+
'expire_on_close' => false,
|
37
|
+
|
38
|
+
/*
|
39
|
+
|--------------------------------------------------------------------------
|
40
|
+
| Session Encryption
|
41
|
+
|--------------------------------------------------------------------------
|
42
|
+
|
|
43
|
+
| This option allows you to easily specify that all of your session data
|
44
|
+
| should be encrypted before it is stored. All encryption will be run
|
45
|
+
| automatically by Laravel and you can use the Session like normal.
|
46
|
+
|
|
47
|
+
*/
|
48
|
+
|
49
|
+
'encrypt' => false,
|
50
|
+
|
51
|
+
/*
|
52
|
+
|--------------------------------------------------------------------------
|
53
|
+
| Session File Location
|
54
|
+
|--------------------------------------------------------------------------
|
55
|
+
|
|
56
|
+
| When using the native session driver, we need a location where session
|
57
|
+
| files may be stored. A default has been set for you but a different
|
58
|
+
| location may be specified. This is only needed for file sessions.
|
59
|
+
|
|
60
|
+
*/
|
61
|
+
|
62
|
+
'files' => storage_path('framework/sessions'),
|
63
|
+
|
64
|
+
/*
|
65
|
+
|--------------------------------------------------------------------------
|
66
|
+
| Session Database Connection
|
67
|
+
|--------------------------------------------------------------------------
|
68
|
+
|
|
69
|
+
| When using the "database" or "redis" session drivers, you may specify a
|
70
|
+
| connection that should be used to manage these sessions. This should
|
71
|
+
| correspond to a connection in your database configuration options.
|
72
|
+
|
|
73
|
+
*/
|
74
|
+
|
75
|
+
'connection' => env('SESSION_CONNECTION'),
|
76
|
+
|
77
|
+
/*
|
78
|
+
|--------------------------------------------------------------------------
|
79
|
+
| Session Database Table
|
80
|
+
|--------------------------------------------------------------------------
|
81
|
+
|
|
82
|
+
| When using the "database" session driver, you may specify the table we
|
83
|
+
| should use to manage the sessions. Of course, a sensible default is
|
84
|
+
| provided for you; however, you are free to change this as needed.
|
85
|
+
|
|
86
|
+
*/
|
87
|
+
|
88
|
+
'table' => 'sessions',
|
89
|
+
|
90
|
+
/*
|
91
|
+
|--------------------------------------------------------------------------
|
92
|
+
| Session Cache Store
|
93
|
+
|--------------------------------------------------------------------------
|
94
|
+
|
|
95
|
+
| While using one of the framework's cache driven session backends you may
|
96
|
+
| list a cache store that should be used for these sessions. This value
|
97
|
+
| must match with one of the application's configured cache "stores".
|
98
|
+
|
|
99
|
+
| Affects: "apc", "dynamodb", "memcached", "redis"
|
100
|
+
|
|
101
|
+
*/
|
102
|
+
|
103
|
+
'store' => env('SESSION_STORE'),
|
104
|
+
|
105
|
+
/*
|
106
|
+
|--------------------------------------------------------------------------
|
107
|
+
| Session Sweeping Lottery
|
108
|
+
|--------------------------------------------------------------------------
|
109
|
+
|
|
110
|
+
| Some session drivers must manually sweep their storage location to get
|
111
|
+
| rid of old sessions from storage. Here are the chances that it will
|
112
|
+
| happen on a given request. By default, the odds are 2 out of 100.
|
113
|
+
|
|
114
|
+
*/
|
115
|
+
|
116
|
+
'lottery' => [2, 100],
|
117
|
+
|
118
|
+
/*
|
119
|
+
|--------------------------------------------------------------------------
|
120
|
+
| Session Cookie Name
|
121
|
+
|--------------------------------------------------------------------------
|
122
|
+
|
|
123
|
+
| Here you may change the name of the cookie used to identify a session
|
124
|
+
| instance by ID. The name specified here will get used every time a
|
125
|
+
| new session cookie is created by the framework for every driver.
|
126
|
+
|
|
127
|
+
*/
|
128
|
+
|
129
|
+
'cookie' => env(
|
130
|
+
'SESSION_COOKIE',
|
131
|
+
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
|
132
|
+
),
|
133
|
+
|
134
|
+
/*
|
135
|
+
|--------------------------------------------------------------------------
|
136
|
+
| Session Cookie Path
|
137
|
+
|--------------------------------------------------------------------------
|
138
|
+
|
|
139
|
+
| The session cookie path determines the path for which the cookie will
|
140
|
+
| be regarded as available. Typically, this will be the root path of
|
141
|
+
| your application but you are free to change this when necessary.
|
142
|
+
|
|
143
|
+
*/
|
144
|
+
|
145
|
+
'path' => '/',
|
146
|
+
|
147
|
+
/*
|
148
|
+
|--------------------------------------------------------------------------
|
149
|
+
| Session Cookie Domain
|
150
|
+
|--------------------------------------------------------------------------
|
151
|
+
|
|
152
|
+
| Here you may change the domain of the cookie used to identify a session
|
153
|
+
| in your application. This will determine which domains the cookie is
|
154
|
+
| available to in your application. A sensible default has been set.
|
155
|
+
|
|
156
|
+
*/
|
157
|
+
|
158
|
+
'domain' => env('SESSION_DOMAIN'),
|
159
|
+
|
160
|
+
/*
|
161
|
+
|--------------------------------------------------------------------------
|
162
|
+
| HTTPS Only Cookies
|
163
|
+
|--------------------------------------------------------------------------
|
164
|
+
|
|
165
|
+
| By setting this option to true, session cookies will only be sent back
|
166
|
+
| to the server if the browser has a HTTPS connection. This will keep
|
167
|
+
| the cookie from being sent to you when it can't be done securely.
|
168
|
+
|
|
169
|
+
*/
|
170
|
+
|
171
|
+
'secure' => env('SESSION_SECURE_COOKIE'),
|
172
|
+
|
173
|
+
/*
|
174
|
+
|--------------------------------------------------------------------------
|
175
|
+
| HTTP Access Only
|
176
|
+
|--------------------------------------------------------------------------
|
177
|
+
|
|
178
|
+
| Setting this value to true will prevent JavaScript from accessing the
|
179
|
+
| value of the cookie and the cookie will only be accessible through
|
180
|
+
| the HTTP protocol. You are free to modify this option if needed.
|
181
|
+
|
|
182
|
+
*/
|
183
|
+
|
184
|
+
'http_only' => true,
|
185
|
+
|
186
|
+
/*
|
187
|
+
|--------------------------------------------------------------------------
|
188
|
+
| Same-Site Cookies
|
189
|
+
|--------------------------------------------------------------------------
|
190
|
+
|
|
191
|
+
| This option determines how your cookies behave when cross-site requests
|
192
|
+
| take place, and can be used to mitigate CSRF attacks. By default, we
|
193
|
+
| will set this value to "lax" since this is a secure default value.
|
194
|
+
|
|
195
|
+
| Supported: "lax", "strict", "none", null
|
196
|
+
|
|
197
|
+
*/
|
198
|
+
|
199
|
+
'same_site' => 'lax',
|
200
|
+
|
201
|
+
];
|