├── public ├── favicon.ico ├── robots.txt ├── tile.png ├── tile-wide.png ├── apple-touch-icon.png ├── img │ └── backend │ │ └── plugin │ │ └── datatables │ │ ├── sort_asc.png │ │ ├── sort_both.png │ │ ├── sort_desc.png │ │ ├── Sorting icons.psd │ │ ├── sort_asc_disabled.png │ │ └── sort_desc_disabled.png ├── fonts │ └── vendor │ │ ├── font-awesome │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ │ └── bootstrap-sass │ │ └── bootstrap │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 ├── humans.txt ├── mix-manifest.json ├── browserconfig.xml ├── js │ └── backend │ │ └── access │ │ ├── roles │ │ └── script.js │ │ └── users │ │ └── script.js ├── mix.9b87a1da741f957f3f09.js ├── crossdomain.xml └── web.config ├── .styleci.yml ├── database ├── .gitignore ├── seeds │ ├── DatabaseSeeder.php │ ├── AccessTableSeeder.php │ ├── Access │ │ ├── PermissionRoleSeeder.php │ │ ├── UserRoleSeeder.php │ │ └── PermissionTableSeeder.php │ └── HistoryTypeTableSeeder.php ├── migrations │ ├── 2017_04_23_002118_create_wishlists_table.php │ ├── 2017_04_22_221935_create_appliances_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2017_04_24_222127_create_wishlist_item_feedbacks_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2017_04_04_131153_create_sessions_table.php │ ├── 2017_05_07_203050_create_read_wishlists_table.php │ ├── 2015_12_28_171741_create_social_logins_table.php │ ├── 2017_05_07_203028_create_read_appliances_table.php │ └── 2017_05_30_184250_create_appliance_read_model_wishlist_read_model_table.php └── TruncateTable.php ├── resources ├── views │ ├── vendor │ │ ├── .gitkeep │ │ ├── mail │ │ │ ├── markdown │ │ │ │ ├── panel.blade.php │ │ │ │ ├── table.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── button.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── promotion │ │ │ │ │ └── button.blade.php │ │ │ │ ├── layout.blade.php │ │ │ │ └── message.blade.php │ │ │ └── html │ │ │ │ ├── table.blade.php │ │ │ │ ├── header.blade.php │ │ │ │ ├── subcopy.blade.php │ │ │ │ ├── promotion.blade.php │ │ │ │ ├── footer.blade.php │ │ │ │ ├── panel.blade.php │ │ │ │ ├── promotion │ │ │ │ └── button.blade.php │ │ │ │ ├── message.blade.php │ │ │ │ └── button.blade.php │ │ ├── datatables │ │ │ └── script.blade.php │ │ ├── log-viewer │ │ │ ├── _template │ │ │ │ ├── footer.blade.php │ │ │ │ └── navigation.blade.php │ │ │ └── _partials │ │ │ │ └── menu.blade.php │ │ ├── notifications │ │ │ └── email-plain.blade.php │ │ └── pagination │ │ │ ├── simple-default.blade.php │ │ │ └── simple-bootstrap-4.blade.php │ ├── backend │ │ ├── access │ │ │ ├── show │ │ │ │ └── tabs │ │ │ │ │ └── history.blade.php │ │ │ └── includes │ │ │ │ └── partials │ │ │ │ └── role-header-buttons.blade.php │ │ ├── history │ │ │ └── partials │ │ │ │ ├── list.blade.php │ │ │ │ └── item.blade.php │ │ ├── search │ │ │ └── index.blade.php │ │ └── includes │ │ │ ├── partials │ │ │ └── breadcrumbs.blade.php │ │ │ └── footer.blade.php │ ├── includes │ │ └── partials │ │ │ ├── lang.blade.php │ │ │ ├── logged-in-as.blade.php │ │ │ └── ga.blade.php │ ├── frontend │ │ ├── index.blade.php │ │ ├── appliance │ │ │ └── list.blade.php │ │ └── user │ │ │ └── account │ │ │ └── tabs │ │ │ ├── profile.blade.php │ │ │ └── edit.blade.php │ └── errors │ │ └── 503.blade.php ├── assets │ ├── sass │ │ ├── frontend │ │ │ ├── pages │ │ │ │ └── _dashboard.scss │ │ │ ├── _global.scss │ │ │ ├── app.scss │ │ │ └── _variables.scss │ │ ├── backend │ │ │ ├── variable-overrides.scss │ │ │ ├── _invoice.scss │ │ │ ├── _carousel.scss │ │ │ ├── skins │ │ │ │ ├── _all-skins.scss │ │ │ │ ├── _skin-red-light.scss │ │ │ │ ├── _skin-red.scss │ │ │ │ ├── _skin-green-light.scss │ │ │ │ ├── _skin-green.scss │ │ │ │ ├── _skin-purple-light.scss │ │ │ │ ├── _skin-purple.scss │ │ │ │ ├── _skin-yellow-light.scss │ │ │ │ ├── _skin-yellow.scss │ │ │ │ ├── _skin-blue.scss │ │ │ │ └── _skin-blue-light.scss │ │ │ ├── _labels.scss │ │ │ ├── _custom.scss │ │ │ ├── _users-list.scss │ │ │ ├── _alerts.scss │ │ │ ├── _404_500_errors.scss │ │ │ ├── _login_and_register.scss │ │ │ ├── _products.scss │ │ │ ├── _callout.scss │ │ │ ├── _print.scss │ │ │ ├── _table.scss │ │ │ └── app.scss │ │ └── _helpers.scss │ └── js │ │ ├── components │ │ └── frontend │ │ │ └── Example.vue │ │ └── frontend │ │ └── app.js └── lang │ ├── vendor │ └── log-viewer │ │ ├── en │ │ ├── general.php │ │ └── levels.php │ │ ├── zh │ │ ├── general.php │ │ └── levels.php │ │ ├── ko │ │ ├── general.php │ │ └── levels.php │ │ ├── zh-TW │ │ ├── general.php │ │ └── levels.php │ │ ├── ar │ │ ├── general.php │ │ └── levels.php │ │ ├── bg │ │ ├── general.php │ │ └── levels.php │ │ ├── ru │ │ ├── general.php │ │ └── levels.php │ │ ├── th │ │ ├── general.php │ │ └── levels.php │ │ ├── tr │ │ ├── general.php │ │ └── levels.php │ │ ├── de │ │ ├── general.php │ │ └── levels.php │ │ ├── et │ │ ├── general.php │ │ └── levels.php │ │ ├── fa │ │ ├── general.php │ │ └── levels.php │ │ ├── fr │ │ ├── general.php │ │ └── levels.php │ │ ├── hu │ │ ├── general.php │ │ └── levels.php │ │ ├── hy │ │ ├── general.php │ │ └── levels.php │ │ ├── it │ │ ├── general.php │ │ └── levels.php │ │ ├── nl │ │ ├── general.php │ │ └── levels.php │ │ ├── ro │ │ ├── general.php │ │ └── levels.php │ │ ├── es │ │ ├── general.php │ │ └── levels.php │ │ ├── pl │ │ ├── general.php │ │ └── levels.php │ │ ├── pt-BR │ │ ├── general.php │ │ └── levels.php │ │ └── sv │ │ ├── general.php │ │ └── levels.php │ └── en │ ├── wishlist.php │ ├── appliances.php │ ├── roles.php │ ├── pagination.php │ ├── http.php │ ├── passwords.php │ ├── auth.php │ └── navs.php ├── bootstrap ├── cache │ └── .gitignore └── autoload.php ├── storage ├── debugbar │ └── .gitignore ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── cache │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── app ├── Http │ ├── breadcrumbs.php │ ├── Breadcrumbs │ │ └── Backend │ │ │ ├── Access.php │ │ │ ├── Search.php │ │ │ ├── Backend.php │ │ │ ├── Access │ │ │ └── Role.php │ │ │ └── LogViewer.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrimStrings.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── RouteNeedsRole.php │ │ └── RouteNeedsPermission.php │ ├── Controllers │ │ ├── Backend │ │ │ ├── DashboardController.php │ │ │ ├── Access │ │ │ │ └── User │ │ │ │ │ ├── UserConfirmationController.php │ │ │ │ │ └── UserSessionController.php │ │ │ └── Search │ │ │ │ └── SearchController.php │ │ ├── Controller.php │ │ ├── LanguageController.php │ │ └── Frontend │ │ │ ├── User │ │ │ ├── AccountController.php │ │ │ └── DashboardController.php │ │ │ ├── FrontendController.php │ │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ └── ChangePasswordController.php │ ├── Composers │ │ └── GlobalComposer.php │ └── Requests │ │ ├── Request.php │ │ ├── Backend │ │ └── Access │ │ │ ├── Role │ │ │ ├── ManageRoleRequest.php │ │ │ ├── StoreRoleRequest.php │ │ │ └── UpdateRoleRequest.php │ │ │ └── User │ │ │ ├── ManageUserRequest.php │ │ │ ├── UpdateUserPasswordRequest.php │ │ │ ├── UpdateUserRequest.php │ │ │ └── StoreUserRequest.php │ │ └── Frontend │ │ ├── User │ │ ├── UpdateProfileRequest.php │ │ └── ChangePasswordRequest.php │ │ └── Auth │ │ └── RegisterRequest.php ├── Exceptions │ ├── GeneralException.php │ └── RemoveApplianceFromNotExistingWishlistException.php ├── Helpers │ ├── Macros │ │ └── Macros.php │ └── Auth │ │ └── Auth.php ├── Repositories │ ├── Backend │ │ ├── History │ │ │ └── Facades │ │ │ │ └── History.php │ │ └── Access │ │ │ ├── Permission │ │ │ └── PermissionRepository.php │ │ │ └── User │ │ │ └── UserSessionRepository.php │ ├── BaseRepository.php │ └── Frontend │ │ └── WishList │ │ └── WishlistItemFeedbackRepository.php ├── Models │ ├── Access │ │ ├── Role │ │ │ ├── Traits │ │ │ │ ├── Scope │ │ │ │ │ └── RoleScope.php │ │ │ │ └── Relationship │ │ │ │ │ └── RoleRelationship.php │ │ │ └── Role.php │ │ ├── Permission │ │ │ ├── Traits │ │ │ │ └── Relationship │ │ │ │ │ └── PermissionRelationship.php │ │ │ └── Permission.php │ │ └── User │ │ │ ├── Traits │ │ │ ├── UserSendPasswordReset.php │ │ │ ├── Scope │ │ │ │ └── UserScope.php │ │ │ └── Relationship │ │ │ │ └── UserRelationship.php │ │ │ └── SocialLogin.php │ ├── System │ │ └── Session.php │ ├── History │ │ ├── HistoryType.php │ │ ├── History.php │ │ └── Traits │ │ │ └── Relationship │ │ │ └── HistoryRelationship.php │ ├── Wishlist │ │ ├── WishlistReadModel.php │ │ └── WishlistItemFeedbackReadModel.php │ └── Appliance │ │ └── ApplianceReadModel.php ├── Services │ └── Access │ │ └── Facades │ │ └── Access.php ├── Events │ ├── Frontend │ │ └── Auth │ │ │ ├── UserConfirmed.php │ │ │ ├── UserLoggedIn.php │ │ │ ├── UserLoggedOut.php │ │ │ └── UserRegistered.php │ └── Backend │ │ └── Access │ │ ├── Role │ │ ├── RoleCreated.php │ │ ├── RoleDeleted.php │ │ └── RoleUpdated.php │ │ └── User │ │ ├── UserCreated.php │ │ ├── UserDeleted.php │ │ ├── UserRestored.php │ │ ├── UserUpdated.php │ │ ├── UserDeactivated.php │ │ ├── UserReactivated.php │ │ ├── UserPasswordChanged.php │ │ └── UserPermanentlyDeleted.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BladeServiceProvider.php │ ├── MacroServiceProvider.php │ ├── ComposerServiceProvider.php │ ├── HistoryServiceProvider.php │ └── EventServiceProvider.php └── Console │ └── Kernel.php ├── config ├── breadcrumbs.php ├── tactician.php ├── analytics.php ├── view.php └── no-captcha.php ├── .gitattributes ├── routes ├── Backend │ ├── Dashboard.php │ └── Search.php ├── channels.php ├── api.php ├── console.php └── web.php ├── .github ├── PULL_REQUEST_TEMPLATE.md ├── CONTRIBUTING.md └── ISSUE_TEMPLATE.md ├── .gitignore ├── src └── Mfa │ ├── Infrastructure │ ├── Persistence │ │ └── Eloquent │ │ │ ├── EloquentWishlistModel.php │ │ │ ├── EloquentApplianceModel.php │ │ │ └── EloquentBaseModel.php │ └── PersistenceProvider.php │ ├── Domain │ ├── WishlistRepository.php │ ├── Event │ │ ├── WishlistWasCreated.php │ │ ├── ApplianceWasCreated.php │ │ ├── ApplianceWasUpdated.php │ │ ├── ApplianceWasAddedToWishlist.php │ │ ├── ApplianceWasRemovedFromWishlist.php │ │ └── Listener │ │ │ └── WishlistWasCreatedListener.php │ ├── ApplianceIdCollection.php │ ├── Excecption │ │ ├── UserWishlistNotFoundException.php │ │ ├── WishlistWithIdNotFoundException.php │ │ ├── ApplianceWithIdNotFoundException.php │ │ └── ApplianceWithExternalIdNotFoundException.php │ ├── ApplianceDescription.php │ └── ApplianceRepository.php │ └── Application │ └── Command │ ├── CreateWishlistCommand.php │ ├── AddApplianceToWishlistCommand.php │ └── RemoveApplianceFromWishlistCommand.php ├── tests ├── Backend │ ├── Routes │ │ ├── DashboardRouteTest.php │ │ ├── Access │ │ │ └── RoleRouteTest.php │ │ └── LogViewerRouteTest.php │ ├── Forms │ │ └── Search │ │ │ └── SearchFormTest.php │ └── Access │ │ └── User │ │ └── UserAccessTest.php └── CreatesApplication.php ├── server.php ├── package.json ├── phpunit.xml └── webpack.mix.js /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | preset: laravel -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /resources/views/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /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/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/panel.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/table.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/assets/sass/frontend/pages/_dashboard.scss: -------------------------------------------------------------------------------- 1 | // Dashboard Styles -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/footer.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/subcopy.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/button.blade.php: -------------------------------------------------------------------------------- 1 | {{ $slot }}: {{ $url }} 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/header.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/promotion/button.blade.php: -------------------------------------------------------------------------------- 1 | [{{ $slot }}]({{ $url }}) 2 | -------------------------------------------------------------------------------- /app/Http/breadcrumbs.php: -------------------------------------------------------------------------------- 1 | renderEntity('User', $user->id) !!} -------------------------------------------------------------------------------- /public/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/apple-touch-icon.png -------------------------------------------------------------------------------- /config/breadcrumbs.php: -------------------------------------------------------------------------------- 1 | 'backend.includes.partials.breadcrumbs', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/assets/sass/frontend/_global.scss: -------------------------------------------------------------------------------- 1 | // Header Styles 2 | .logged-in-as { 3 | margin:0; 4 | border-radius:0; 5 | } -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/en/general.php: -------------------------------------------------------------------------------- 1 | 'All', 5 | 'date' => 'Date', 6 | ]; 7 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {{ Illuminate\Mail\Markdown::parse($slot) }} 3 |
4 | -------------------------------------------------------------------------------- /app/Http/Breadcrumbs/Backend/Access.php: -------------------------------------------------------------------------------- 1 | 'Mfa\Application\Command', 5 | 'handlerNamespace' => 'Mfa\Application\Command\Handler', 6 | ]; 7 | -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/zh/general.php: -------------------------------------------------------------------------------- 1 | '全部', 5 | 'date' => '日期', 6 | 'empty-logs' => '日志列表为空!', 7 | ]; 8 | -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/font-awesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/img/backend/plugin/datatables/sort_asc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/img/backend/plugin/datatables/sort_asc_disabled.png -------------------------------------------------------------------------------- /public/img/backend/plugin/datatables/sort_desc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/img/backend/plugin/datatables/sort_desc_disabled.png -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ko/general.php: -------------------------------------------------------------------------------- 1 | '전체', 5 | 'date' => '날짜', 6 | 'empty-logs' => '로그가 없습니다.', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/zh-TW/general.php: -------------------------------------------------------------------------------- 1 | '全部', 5 | 'date' => '日期', 6 | 'empty-logs' => '列表中沒有任何紀錄!', 7 | ]; 8 | -------------------------------------------------------------------------------- /routes/Backend/Dashboard.php: -------------------------------------------------------------------------------- 1 | name('dashboard'); 7 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ar/general.php: -------------------------------------------------------------------------------- 1 | 'جميع', 5 | 'date' => 'تاريخ', 6 | 'empty-logs' => 'قائمة سجلات فارغة!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/header.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ $slot }} 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /resources/lang/en/wishlist.php: -------------------------------------------------------------------------------- 1 | ':name\'s wishlist', 6 | 'empty' => 'Empty wishlist!', 7 | 'joined' => 'Joined', 8 | 9 | ]; 10 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/bg/general.php: -------------------------------------------------------------------------------- 1 | 'Всички', 5 | 'date' => 'Дата', 6 | 'empty-logs' => 'Не са намерени логове!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ru/general.php: -------------------------------------------------------------------------------- 1 | 'Все', 5 | 'date' => 'Дата', 6 | 'empty-logs' => 'Список журналов пуст!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/th/general.php: -------------------------------------------------------------------------------- 1 | 'ทั้งหมด', 5 | 'date' => 'วันที่', 6 | 'empty-logs' => 'ไม่มีรายการล็อก!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/tr/general.php: -------------------------------------------------------------------------------- 1 | 'Tümü', 5 | 'date' => 'Tarih', 6 | 'empty-logs' => 'Günlük listesi boş!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/de/general.php: -------------------------------------------------------------------------------- 1 | 'Alle', 5 | 'date' => 'Datum', 6 | 'empty-logs' => 'Keine Log Dateien gefunden!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/et/general.php: -------------------------------------------------------------------------------- 1 | 'Kõik', 5 | 'date' => 'Kuupäev', 6 | 'empty-logs' => 'Logide nimekiri on tühi!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/fa/general.php: -------------------------------------------------------------------------------- 1 | 'همه', 5 | 'date' => 'تاریخ', 6 | 'empty-logs' => 'The list of logs is empty!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/fr/general.php: -------------------------------------------------------------------------------- 1 | 'Tous', 5 | 'date' => 'Date', 6 | 'empty-logs' => 'La liste des logs est vide!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/hu/general.php: -------------------------------------------------------------------------------- 1 | 'Összes', 5 | 'date' => 'Dátum', 6 | 'empty-logs' => 'The list of logs is empty!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/hy/general.php: -------------------------------------------------------------------------------- 1 | 'Բոլորը', 5 | 'date' => 'Ամսաթիվ', 6 | 'empty-logs' => 'Լոգերի ցուցակը դատարկ է։', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/it/general.php: -------------------------------------------------------------------------------- 1 | 'Tutti', 5 | 'date' => 'Data', 6 | 'empty-logs' => 'L\'elenco dei log è vuoto!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/nl/general.php: -------------------------------------------------------------------------------- 1 | 'Alles', 5 | 'date' => 'Datum', 6 | 'empty-logs' => 'De lijst met logs is leeg!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ro/general.php: -------------------------------------------------------------------------------- 1 | 'Toate', 5 | 'date' => 'Dată', 6 | 'empty-logs' => 'The list of logs is empty!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/es/general.php: -------------------------------------------------------------------------------- 1 | 'Todos', 5 | 'date' => 'Fecha', 6 | 'empty-logs' => 'La lista del log está vacía!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/pl/general.php: -------------------------------------------------------------------------------- 1 | 'Wszystkie', 5 | 'date' => 'Data', 6 | 'empty-logs' => 'The list of logs is empty!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/pt-BR/general.php: -------------------------------------------------------------------------------- 1 | 'Todos', 5 | 'date' => 'Data', 6 | 'empty-logs' => 'The list of logs is empty!', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/sv/general.php: -------------------------------------------------------------------------------- 1 | 'Alla', 5 | 'date' => 'Datum', 6 | 'empty-logs' => 'Det finns inga loggar att visa.', 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/views/vendor/datatables/script.blade.php: -------------------------------------------------------------------------------- 1 | (function(window,$){window.LaravelDataTables=window.LaravelDataTables||{};window.LaravelDataTables["%1$s"]=$("#%1$s").DataTable(%2$s);})(window,jQuery); 2 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Is this a fix, enhancement or language pack? 2 | Describe what the PR does, try to first give a brief explanation and then a more in depth explanation if you think that is necessary. 3 | -------------------------------------------------------------------------------- /public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josecelano/ddd-laravel-sample/HEAD/public/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /app/Exceptions/GeneralException.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ Illuminate\Mail\Markdown::parse($slot) }} 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/Http/Breadcrumbs/Backend/Search.php: -------------------------------------------------------------------------------- 1 | parent('admin.dashboard'); 5 | $breadcrumbs->push(trans('strings.backend.search.title'), route('admin.search.index')); 6 | }); 7 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/promotion.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 |
4 | {{ Illuminate\Mail\Markdown::parse($slot) }} 5 |
8 | -------------------------------------------------------------------------------- /app/Helpers/Macros/Macros.php: -------------------------------------------------------------------------------- 1 | -- -- 7 | 8 | # THANKS 9 | 10 | 11 | 12 | # TECHNOLOGY COLOPHON 13 | 14 | CSS3, HTML5 15 | Apache Server Configs, jQuery, Modernizr, Normalize.css 16 | -------------------------------------------------------------------------------- /app/Http/Breadcrumbs/Backend/Backend.php: -------------------------------------------------------------------------------- 1 | push('Dashboard', route('admin.dashboard')); 5 | }); 6 | 7 | require __DIR__.'/Search.php'; 8 | require __DIR__.'/Access.php'; 9 | require __DIR__.'/LogViewer.php'; 10 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_invoice.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Page: Invoice 3 | * ------------- 4 | */ 5 | 6 | .invoice { 7 | position: relative; 8 | background: #fff; 9 | border: 1px solid #f4f4f4; 10 | padding: 20px; 11 | margin: 10px 25px; 12 | } 13 | 14 | .invoice-title { 15 | margin-top: 0; 16 | } 17 | -------------------------------------------------------------------------------- /resources/lang/en/appliances.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'dishwasher' => 'Dishwasher', 7 | 'dishwashers' => 'Dishwashers', 8 | 'small_appliance' => 'Small ApplianceReadModel', 9 | 'small_appliances' => 'Small Appliances', 10 | ], 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/frontend.js": "/js/frontend.19701aa5060cc81711ba.js", 3 | "/js/backend.js": "/js/backend.c13b8b14bc7ab5143ff3.js", 4 | "/mix.js": "/mix.9b87a1da741f957f3f09.js", 5 | "/css/frontend.css": "/css/frontend.f6cfd190bc7ef40df89e.css", 6 | "/css/backend.css": "/css/backend.f6cfd190bc7ef40df89e.css" 7 | } -------------------------------------------------------------------------------- /routes/Backend/Search.php: -------------------------------------------------------------------------------- 1 | 'search', 5 | 'as' => 'search.', 6 | 'namespace' => 'Search', 7 | ], function () { 8 | 9 | /* 10 | * Search Specific Functionality 11 | */ 12 | Route::get('/', 'SearchController@index')->name('index'); 13 | }); 14 | -------------------------------------------------------------------------------- /resources/views/backend/history/partials/list.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | @each('backend.history.partials.item', $history, 'historyItem') 3 |
4 | 5 | @if ($paginate) 6 |
7 | {{ $history->links() }} 8 |
9 | 10 |
11 | @endif -------------------------------------------------------------------------------- /resources/views/includes/partials/lang.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/backend/search/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('backend.layouts.app') 2 | 3 | @section('page-header') 4 |

5 | {{ trans('strings.backend.search.results', ['query' => $search_term]) }} 6 |

7 | @endsection 8 | 9 | @section('content') 10 | {{ trans('strings.backend.search.incomplete') }} 11 | @endsection -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ko/levels.php: -------------------------------------------------------------------------------- 1 | '전체', 5 | 'emergency' => '긴급', 6 | 'alert' => '경고', 7 | 'critical' => '심각', 8 | 'error' => '오류', 9 | 'warning' => '주의', 10 | 'notice' => '알림', 11 | 'info' => '정보', 12 | 'debug' => '디버그', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/zh/levels.php: -------------------------------------------------------------------------------- 1 | '全部', 5 | 'emergency' => '危急', 6 | 'alert' => '紧急', 7 | 'critical' => '严重', 8 | 'error' => '错误', 9 | 'warning' => '警告', 10 | 'notice' => '注意', 11 | 'info' => '信息', 12 | 'debug' => '调试', 13 | ]; 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/storage 3 | /public/hot 4 | /storage/*.key 5 | /vendor 6 | .idea 7 | Homestead.json 8 | Homestead.yaml 9 | .env 10 | .DS_Store 11 | Thumbs.db 12 | *.sublime-project 13 | *.sublime-workspace 14 | .project 15 | /nbproject 16 | _ide_helper.php 17 | composer.phar 18 | error.log 19 | Todo.rtf 20 | .vagrant 21 | /.vagrant -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/zh-TW/levels.php: -------------------------------------------------------------------------------- 1 | '全部', 5 | 'emergency' => '緊急', 6 | 'alert' => '警報', 7 | 'critical' => '嚴重', 8 | 'error' => '錯誤', 9 | 'warning' => '警告', 10 | 'notice' => '注意', 11 | 'info' => '訊息', 12 | 'debug' => '除錯', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_carousel.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Component: Carousel 3 | * ------------------- 4 | */ 5 | .carousel-control { 6 | background-image: none!important; 7 | > .fa { 8 | font-size: 40px; 9 | position: absolute; 10 | top: 50%; 11 | z-index: 5; 12 | display: inline-block; 13 | margin-top: -20px; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/fa/levels.php: -------------------------------------------------------------------------------- 1 | 'همه', 5 | 'emergency' => 'اورژانسی', 6 | 'alert' => 'اخطار', 7 | 'critical' => 'بحرانی', 8 | 'error' => 'خطا', 9 | 'warning' => 'هشدار', 10 | 'notice' => 'اعلان', 11 | 'info' => 'اطلاعات', 12 | 'debug' => 'دیباگ', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/bg/levels.php: -------------------------------------------------------------------------------- 1 | 'Всички', 5 | 'emergency' => 'Emergency', 6 | 'alert' => 'Alert', 7 | 'critical' => 'Critical', 8 | 'error' => 'Error', 9 | 'warning' => 'Warning', 10 | 'notice' => 'Notice', 11 | 'info' => 'Info', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/de/levels.php: -------------------------------------------------------------------------------- 1 | 'Alle', 5 | 'emergency' => 'Notfall', 6 | 'alert' => 'Alarm', 7 | 'critical' => 'Kritisch', 8 | 'error' => 'Fehler', 9 | 'warning' => 'Warnung', 10 | 'notice' => 'Hinweis', 11 | 'info' => 'Info', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/en/levels.php: -------------------------------------------------------------------------------- 1 | 'All', 5 | 'emergency' => 'Emergency', 6 | 'alert' => 'Alert', 7 | 'critical' => 'Critical', 8 | 'error' => 'Error', 9 | 'warning' => 'Warning', 10 | 'notice' => 'Notice', 11 | 'info' => 'Info', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/tr/levels.php: -------------------------------------------------------------------------------- 1 | 'Tümü', 5 | 'emergency' => 'Acil', 6 | 'alert' => 'Alarm', 7 | 'critical' => 'Kritik', 8 | 'error' => 'Hata', 9 | 'warning' => 'Uyarı', 10 | 'notice' => 'Bildirim', 11 | 'info' => 'Bilgi', 12 | 'debug' => 'Hata ayıklama', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ar/levels.php: -------------------------------------------------------------------------------- 1 | 'الجميع', 5 | 'emergency' => 'حالات الطوارئ', 6 | 'alert' => 'إنذار', 7 | 'critical' => 'حرج', 8 | 'error' => 'خطأ', 9 | 'warning' => 'تحذير', 10 | 'notice' => 'ملاحظة', 11 | 'info' => 'المعلومات', 12 | 'debug' => 'التصحيح', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/et/levels.php: -------------------------------------------------------------------------------- 1 | 'Kõik', 5 | 'emergency' => 'Erakorraline', 6 | 'alert' => 'Häire', 7 | 'critical' => 'Kriitiline', 8 | 'error' => 'Viga', 9 | 'warning' => 'Hoiatus', 10 | 'notice' => 'Teade', 11 | 'info' => 'Info', 12 | 'debug' => 'Silumine', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/fr/levels.php: -------------------------------------------------------------------------------- 1 | 'Tous', 5 | 'emergency' => 'Urgence', 6 | 'alert' => 'Alerte', 7 | 'critical' => 'Critique', 8 | 'error' => 'Erreur', 9 | 'warning' => 'Avertissement', 10 | 'notice' => 'Notice', 11 | 'info' => 'Info', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/it/levels.php: -------------------------------------------------------------------------------- 1 | 'Tutti', 5 | 'emergency' => 'Emergenza', 6 | 'alert' => 'Allarme', 7 | 'critical' => 'Critico', 8 | 'error' => 'Errore', 9 | 'warning' => 'Avviso', 10 | 'notice' => 'Notifica', 11 | 'info' => 'Info', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/sv/levels.php: -------------------------------------------------------------------------------- 1 | 'Alla', 5 | 'emergency' => 'Akut', 6 | 'alert' => 'Alarmerande', 7 | 'critical' => 'Kritisk', 8 | 'error' => 'Error', 9 | 'warning' => 'Varning', 10 | 'notice' => 'Notis', 11 | 'info' => 'Information', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /config/analytics.php: -------------------------------------------------------------------------------- 1 | 'UA-XXXXX-X', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/es/levels.php: -------------------------------------------------------------------------------- 1 | 'Todos', 5 | 'emergency' => 'Emergencia', 6 | 'alert' => 'Alerta', 7 | 'critical' => 'Criticos', 8 | 'error' => 'Errores', 9 | 'warning' => 'Advertencia', 10 | 'notice' => 'Aviso', 11 | 'info' => 'Info', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/pt-BR/levels.php: -------------------------------------------------------------------------------- 1 | 'Todos', 5 | 'emergency' => 'Emergência', 6 | 'alert' => 'Alerta', 7 | 'critical' => 'Crítico', 8 | 'error' => 'Erro', 9 | 'warning' => 'Aviso', 10 | 'notice' => 'Notícia', 11 | 'info' => 'Informação', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ro/levels.php: -------------------------------------------------------------------------------- 1 | 'Toate', 5 | 'emergency' => 'Urgență', 6 | 'alert' => 'Alertă', 7 | 'critical' => 'Critic', 8 | 'error' => 'Eroare', 9 | 'warning' => 'Pericol', 10 | 'notice' => 'Avertisment', 11 | 'info' => 'Informare', 12 | 'debug' => 'Depanare', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/th/levels.php: -------------------------------------------------------------------------------- 1 | 'ทั้งหมด', 5 | 'emergency' => 'ฉุกเฉิน', 6 | 'alert' => 'วิกฤติ', 7 | 'critical' => 'ร้ายแรง', 8 | 'error' => 'ข้อผิดพลาด', 9 | 'warning' => 'คำเตือน', 10 | 'notice' => 'ประกาศ', 11 | 'info' => 'ข้อมูล', 12 | 'debug' => 'ดีบัก', 13 | ]; 14 | -------------------------------------------------------------------------------- /src/Mfa/Infrastructure/Persistence/Eloquent/EloquentWishlistModel.php: -------------------------------------------------------------------------------- 1 | 'Alle', 5 | 'emergency' => 'Noodgeval', 6 | 'alert' => 'Alarm', 7 | 'critical' => 'Cruciaal', 8 | 'error' => 'Error', 9 | 'warning' => 'Waarschuwing', 10 | 'notice' => 'Opmerking', 11 | 'info' => 'Informatie', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /src/Mfa/Infrastructure/Persistence/Eloquent/EloquentApplianceModel.php: -------------------------------------------------------------------------------- 1 | 'Wszystkie', 5 | 'emergency' => 'Awaryjne', 6 | 'alert' => 'Alerty', 7 | 'critical' => 'Krytyczne', 8 | 'error' => 'Błędy', 9 | 'warning' => 'Ostrzeżenia', 10 | 'notice' => 'Warte uwagi', 11 | 'info' => 'Informacje', 12 | 'debug' => 'Debug', 13 | ]; 14 | -------------------------------------------------------------------------------- /tests/Backend/Routes/DashboardRouteTest.php: -------------------------------------------------------------------------------- 1 | actingAs($this->admin)->visit('/admin/dashboard')->see('Access Management')->see($this->admin->name); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/hu/levels.php: -------------------------------------------------------------------------------- 1 | 'Összes', 5 | 'emergency' => 'Vészhelyzet', 6 | 'alert' => 'Riasztás', 7 | 'critical' => 'Kritikus', 8 | 'error' => 'Hiba', 9 | 'warning' => 'Figyelmeztetés', 10 | 'notice' => 'Értesítés', 11 | 'info' => 'Információ', 12 | 'debug' => 'Hibakeresés', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/lang/vendor/log-viewer/ru/levels.php: -------------------------------------------------------------------------------- 1 | 'Все', 5 | 'emergency' => 'Аварийная', 6 | 'alert' => 'Предупреждение', 7 | 'critical' => 'Критический', 8 | 'error' => 'Ошибка', 9 | 'warning' => 'Предупреждение', 10 | 'notice' => 'Уведомление', 11 | 'info' => 'Информация', 12 | 'debug' => 'Отладка', 13 | ]; 14 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/footer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 'Բոլորը', 5 | 'emergency' => 'Վթարային', 6 | 'alert' => 'Նախազգուշացում', 7 | 'critical' => 'Կրիտիկական', 8 | 'error' => 'Սխալ', 9 | 'warning' => 'Նախազգուշացում', 10 | 'notice' => 'Ծանուցում', 11 | 'info' => 'Տեղեկատվություն', 12 | 'debug' => 'Կարգաբերում', 13 | ]; 14 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | has("admin_user_id") && session()->has("temp_user_id")) 2 |
3 | You are currently logged in as {{ $logged_in_user->name }}. Re-Login as {{ session()->get("admin_user_name") }}. 4 |
5 | @endif -------------------------------------------------------------------------------- /app/Http/Controllers/Backend/DashboardController.php: -------------------------------------------------------------------------------- 1 | orderBy('sort', $direction); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Services/Access/Facades/Access.php: -------------------------------------------------------------------------------- 1 | 3 | @foreach ($breadcrumbs as $breadcrumb) 4 | @if (!$breadcrumb->last) 5 |
  • {{ $breadcrumb->title }}
  • 6 | @else 7 |
  • {{ $breadcrumb->title }}
  • 8 | @endif 9 | @endforeach 10 | 11 | @endif -------------------------------------------------------------------------------- /app/Repositories/Backend/Access/Permission/PermissionRepository.php: -------------------------------------------------------------------------------- 1 | 2 |
    3 |

    4 | LogViewer - version {{ log_viewer()->version() }} 5 |

    6 |

    7 | Created with by ARCANEDEV © 8 |

    9 |
    10 | 11 | -------------------------------------------------------------------------------- /app/Http/Controllers/LanguageController.php: -------------------------------------------------------------------------------- 1 | put('locale', $lang); 18 | 19 | return redirect()->back(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Composers/GlobalComposer.php: -------------------------------------------------------------------------------- 1 | with('logged_in_user', access()->user()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/Models/System/Session.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Frontend/Auth/UserLoggedIn.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Frontend/Auth/UserLoggedOut.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Controllers/Frontend/User/AccountController.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/Events/Frontend/Auth/UserRegistered.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Models/Access/Permission/Traits/Relationship/PermissionRelationship.php: -------------------------------------------------------------------------------- 1 | belongsToMany(config('access.role'), config('access.permission_role_table'), 'permission_id', 'role_id'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/Role/RoleCreated.php: -------------------------------------------------------------------------------- 1 | role = $role; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/Role/RoleDeleted.php: -------------------------------------------------------------------------------- 1 | role = $role; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/Role/RoleUpdated.php: -------------------------------------------------------------------------------- 1 | role = $role; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/User/UserCreated.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/User/UserDeleted.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/User/UserRestored.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/User/UserUpdated.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Helpers/Auth/Auth.php: -------------------------------------------------------------------------------- 1 | forget('admin_user_id'); 17 | session()->forget('admin_user_name'); 18 | session()->forget('temp_user_id'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Controllers/Frontend/User/DashboardController.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/User/UserReactivated.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/views/backend/includes/footer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/panel.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 |
    4 | 5 | 6 | 9 | 10 |
    7 | {{ Illuminate\Mail\Markdown::parse($slot) }} 8 |
    11 |
    14 | -------------------------------------------------------------------------------- /app/Events/Backend/Access/User/UserPasswordChanged.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/views/backend/history/partials/item.blade.php: -------------------------------------------------------------------------------- 1 |
  • 2 | 3 | 4 |
    5 | {{ $historyItem->created_at->diffForHumans() }} 6 | 7 |

    {{ $historyItem->user->name }} {!! history()->renderDescription($historyItem->text, $historyItem->assets) !!}

    8 |
    9 |
  • -------------------------------------------------------------------------------- /public/js/backend/access/roles/script.js: -------------------------------------------------------------------------------- 1 | var associated = $("select[name='associated-permissions']"); 2 | var associated_container = $("#available-permissions"); 3 | 4 | if (associated.val() == "custom") 5 | associated_container.removeClass('hidden'); 6 | else 7 | associated_container.addClass('hidden'); 8 | 9 | associated.change(function() { 10 | if ($(this).val() == "custom") 11 | associated_container.removeClass('hidden'); 12 | else 13 | associated_container.addClass('hidden'); 14 | }); -------------------------------------------------------------------------------- /app/Events/Backend/Access/User/UserPermanentlyDeleted.php: -------------------------------------------------------------------------------- 1 | user = $user; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/promotion/button.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 |
    4 | 5 | 6 | 9 | 10 |
    7 | {{ $slot }} 8 |
    11 |
    14 | -------------------------------------------------------------------------------- /app/Models/History/HistoryType.php: -------------------------------------------------------------------------------- 1 | call(AccessTableSeeder::class); 21 | $this->call(HistoryTypeTableSeeder::class); 22 | 23 | Model::reguard(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | notify(new UserNeedsPasswordReset($token)); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /resources/lang/en/roles.php: -------------------------------------------------------------------------------- 1 | 'Administrator', 17 | 'user' => 'User', 18 | ]; 19 | -------------------------------------------------------------------------------- /app/Models/Access/User/SocialLogin.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /app/Http/Requests/Request.php: -------------------------------------------------------------------------------- 1 | error = trans('auth.general_error'); 24 | } 25 | 26 | return redirect()->back()->withErrors($this->error); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /public/mix.9b87a1da741f957f3f09.js: -------------------------------------------------------------------------------- 1 | !function(n){function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=n,t.c=r,t.i=function(n){return n},t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:e})},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=0)}({0:function(n,t,r){r("qRWl"),r("MYfA"),n.exports=r("8MfB")},"8MfB":function(n,t){},MYfA:function(n,t){},qRWl:function(n,t){}}); -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | $uri = urldecode( 9 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 10 | ); 11 | 12 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 13 | // built-in PHP web server. This provides a convenient way to test a Laravel 14 | // application without having installed a "real" web server software here. 15 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 16 | return false; 17 | } 18 | 19 | require_once __DIR__.'/public/index.php'; 20 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Thank you for wanting to contribute to the project! 2 | ================================================ 3 | Before you spend time on building something, please share your plans/ideas as an issue. That way we can decide if the idea suits the project. 4 | 5 | Please follow this steps when you make a PR: 6 | 7 | 1. Fork the project ( https://github.com/rappasoft/laravel-5-boilerplate/fork ) 8 | 2. Create your feature branch (`git checkout -b my-new-feature`) 9 | 3. Commit your changes (`git commit -am 'Add some feature'`) 10 | 4. Push to the branch (`git push origin my-new-feature`) 11 | 5. Create a new Pull Request 12 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | ]; 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /src/Mfa/Domain/WishlistRepository.php: -------------------------------------------------------------------------------- 1 | load(); 20 | } 21 | 22 | $app->make(Kernel::class)->bootstrap(); 23 | 24 | return $app; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Controllers/Frontend/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/lang/en/http.php: -------------------------------------------------------------------------------- 1 | [ 15 | 'title' => 'Page Not Found', 16 | 'description' => 'Sorry, but the page you were trying to view does not exist.', 17 | ], 18 | 19 | '503' => [ 20 | 'title' => 'Be right back.', 21 | 'description' => 'Be right back.', 22 | ], 23 | ]; 24 | -------------------------------------------------------------------------------- /public/crossdomain.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /resources/assets/js/components/frontend/Example.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /resources/assets/js/frontend/app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * First we will load all of this project's JavaScript dependencies which 4 | * includes Vue and other libraries. It is a great starting point when 5 | * building robust, powerful web applications using Vue and Laravel. 6 | */ 7 | 8 | require('../bootstrap'); 9 | 10 | /** 11 | * Next, we will create a fresh Vue application instance and attach it to 12 | * the page. Then, you may begin adding components to this application 13 | * or customize the JavaScript scaffolding to fit your unique needs. 14 | */ 15 | 16 | Vue.component('example', require('../components/frontend/Example.vue')); 17 | 18 | const app = new Vue({ 19 | el: '#app' 20 | }); -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-default.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 |
      3 | 4 | @if ($paginator->onFirstPage()) 5 |
    • «
    • 6 | @else 7 |
    • 8 | @endif 9 | 10 | 11 | @if ($paginator->hasMorePages()) 12 |
    • 13 | @else 14 |
    • »
    • 15 | @endif 16 |
    17 | @endif 18 | -------------------------------------------------------------------------------- /app/Models/History/History.php: -------------------------------------------------------------------------------- 1 | registerPolicies(); 29 | 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Models/Access/User/Traits/Scope/UserScope.php: -------------------------------------------------------------------------------- 1 | where('confirmed', $confirmed); 19 | } 20 | 21 | /** 22 | * @param $query 23 | * @param bool $status 24 | * 25 | * @return mixed 26 | */ 27 | public function scopeActive($query, $status = true) 28 | { 29 | return $query->where('status', $status); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /resources/assets/sass/_helpers.scss: -------------------------------------------------------------------------------- 1 | // Margin/Padding Helpers 2 | $margin-padding: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50; 3 | @each $mp in $margin-padding { 4 | .mt-#{$mp} { 5 | margin-top:#{$mp}px !important; 6 | } 7 | .mb-#{$mp} { 8 | margin-bottom:#{$mp}px !important; 9 | } 10 | .ml-#{$mp} { 11 | margin-left:#{$mp}px !important; 12 | } 13 | .mr-#{$mp} { 14 | margin-right:#{$mp}px !important; 15 | } 16 | 17 | .pt-#{$mp} { 18 | padding-top:#{$mp}px !important; 19 | } 20 | .pb-#{$mp} { 21 | padding-bottom:#{$mp}px !important; 22 | } 23 | .pl-#{$mp} { 24 | padding-left:#{$mp}px !important; 25 | } 26 | .pr-#{$mp} { 27 | padding-right:#{$mp}px !important; 28 | } 29 | } -------------------------------------------------------------------------------- /resources/views/includes/partials/ga.blade.php: -------------------------------------------------------------------------------- 1 | @if (config("analytics.google-analytics") && config("analytics.google-analytics") != "UA-XXXXX-X") 2 | {{-- Google Analytics: change UA-XXXXX-X to be your site's ID. --}} 3 | 11 | @endif -------------------------------------------------------------------------------- /src/Mfa/Domain/Event/WishlistWasCreated.php: -------------------------------------------------------------------------------- 1 | wishlist = $wishlist; 21 | } 22 | 23 | /** 24 | * @return Wishlist 25 | */ 26 | public function getWishlist() 27 | { 28 | return $this->wishlist; 29 | } 30 | } -------------------------------------------------------------------------------- /app/Models/History/Traits/Relationship/HistoryRelationship.php: -------------------------------------------------------------------------------- 1 | hasOne(User::class, 'id', 'user_id'); 19 | } 20 | 21 | /** 22 | * @return \Illuminate\Database\Eloquent\Relations\HasOne 23 | */ 24 | public function type() 25 | { 26 | return $this->hasOne(HistoryType::class, 'id', 'type_id'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Mfa/Domain/ApplianceIdCollection.php: -------------------------------------------------------------------------------- 1 | appliance = $appliance; 21 | } 22 | 23 | /** 24 | * @return Appliance 25 | */ 26 | public function getAppliance() 27 | { 28 | return $this->appliance; 29 | } 30 | } -------------------------------------------------------------------------------- /src/Mfa/Domain/Event/ApplianceWasUpdated.php: -------------------------------------------------------------------------------- 1 | appliance = $appliance; 21 | } 22 | 23 | /** 24 | * @return Appliance 25 | */ 26 | public function getAppliance() 27 | { 28 | return $this->appliance; 29 | } 30 | } -------------------------------------------------------------------------------- /app/Http/Requests/Backend/Access/Role/ManageRoleRequest.php: -------------------------------------------------------------------------------- 1 | hasRole(1); 20 | } 21 | 22 | /** 23 | * Get the validation rules that apply to the request. 24 | * 25 | * @return array 26 | */ 27 | public function rules() 28 | { 29 | return [ 30 | // 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Requests/Backend/Access/User/ManageUserRequest.php: -------------------------------------------------------------------------------- 1 | hasRole(1); 20 | } 21 | 22 | /** 23 | * Get the validation rules that apply to the request. 24 | * 25 | * @return array 26 | */ 27 | public function rules() 28 | { 29 | return [ 30 | // 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Exceptions/RemoveApplianceFromNotExistingWishlistException.php: -------------------------------------------------------------------------------- 1 | userId = $userId; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Http/Requests/Backend/Access/Role/StoreRoleRequest.php: -------------------------------------------------------------------------------- 1 | hasRole(1); 20 | } 21 | 22 | /** 23 | * Get the validation rules that apply to the request. 24 | * 25 | * @return array 26 | */ 27 | public function rules() 28 | { 29 | return [ 30 | 'name' => 'required', 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Requests/Backend/Access/Role/UpdateRoleRequest.php: -------------------------------------------------------------------------------- 1 | hasRole(1); 20 | } 21 | 22 | /** 23 | * Get the validation rules that apply to the request. 24 | * 25 | * @return array 26 | */ 27 | public function rules() 28 | { 29 | return [ 30 | 'name' => 'required', 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Models/Access/Role/Traits/Relationship/RoleRelationship.php: -------------------------------------------------------------------------------- 1 | belongsToMany(config('auth.providers.users.model'), config('access.role_user_table'), 'role_id', 'user_id'); 16 | } 17 | 18 | /** 19 | * @return mixed 20 | */ 21 | public function permissions() 22 | { 23 | return $this->belongsToMany(config('access.permission'), config('access.permission_role_table'), 'role_id', 'permission_id') 24 | ->orderBy('display_name', 'asc'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /database/seeds/AccessTableSeeder.php: -------------------------------------------------------------------------------- 1 | disableForeignKeys(); 21 | 22 | $this->call(UserTableSeeder::class); 23 | $this->call(RoleTableSeeder::class); 24 | $this->call(UserRoleSeeder::class); 25 | $this->call(PermissionTableSeeder::class); 26 | $this->call(PermissionRoleSeeder::class); 27 | 28 | $this->enableForeignKeys(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Before you create an issue make sure that: 2 | - Your issue is **strictly related to the boilerplate** itself. Questions about Laravel in general belongs to the [laracasts](https://laracasts.com/discuss/) or [laravel](http://laravel.io/forum) forums. 3 | - You have read the [wiki](https://github.com/rappasoft/laravel-5-boilerplate/wiki) thoroughly. 4 | - You have searched for a similar issues among all the former issues (even closed ones). 5 | - You have tried to replicate the issue with a clean install of the project. 6 | 7 | # Be explicit 8 | Try to be as explicit as you can when you ask anything. 9 | 10 | # What version? 11 | Please when it's necessary, provide the version of your copy of the boilerplate. You can find the version number in the original README.md. 12 | -------------------------------------------------------------------------------- /tests/Backend/Routes/Access/RoleRouteTest.php: -------------------------------------------------------------------------------- 1 | actingAs($this->admin)->visit('/admin/access/role')->see('Role Management'); 13 | } 14 | 15 | public function testCreateRole() 16 | { 17 | $this->actingAs($this->admin)->visit('/admin/access/role/create')->see('Create Role'); 18 | } 19 | 20 | public function testEditRole() 21 | { 22 | $this->actingAs($this->admin) 23 | ->visit('/admin/access/role/'.$this->adminRole->id.'/edit') 24 | ->see('Edit Role') 25 | ->see($this->adminRole->name); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/Requests/Frontend/User/UpdateProfileRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 31 | 'email' => 'sometimes|required|email', 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Requests/Backend/Access/User/UpdateUserPasswordRequest.php: -------------------------------------------------------------------------------- 1 | hasRole(1); 20 | } 21 | 22 | /** 23 | * Get the validation rules that apply to the request. 24 | * 25 | * @return array 26 | */ 27 | public function rules() 28 | { 29 | return [ 30 | 'password' => 'required|min:6|confirmed', 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_custom.scss: -------------------------------------------------------------------------------- 1 | .logged-in-as { 2 | margin:0; 3 | border-radius:0; 4 | } 5 | 6 | // Margin/Padding Helpers 7 | $margin-padding: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50; 8 | @each $mp in $margin-padding { 9 | .mt-#{$mp} { 10 | margin-top:#{$mp}px !important; 11 | } 12 | .mb-#{$mp} { 13 | margin-bottom:#{$mp}px !important; 14 | } 15 | .ml-#{$mp} { 16 | margin-left:#{$mp}px !important; 17 | } 18 | .mr-#{$mp} { 19 | margin-right:#{$mp}px !important; 20 | } 21 | 22 | .pt-#{$mp} { 23 | padding-top:#{$mp}px !important; 24 | } 25 | .pb-#{$mp} { 26 | padding-bottom:#{$mp}px !important; 27 | } 28 | .pl-#{$mp} { 29 | padding-left:#{$mp}px !important; 30 | } 31 | .pr-#{$mp} { 32 | padding-right:#{$mp}px !important; 33 | } 34 | } -------------------------------------------------------------------------------- /resources/views/vendor/mail/markdown/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => config('app.url')]) 5 | {{ config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @if (isset($subcopy)) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endif 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ config('app.name') }}. All rights reserved. 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /app/Http/Requests/Backend/Access/User/UpdateUserRequest.php: -------------------------------------------------------------------------------- 1 | hasRole(1); 20 | } 21 | 22 | /** 23 | * Get the validation rules that apply to the request. 24 | * 25 | * @return array 26 | */ 27 | public function rules() 28 | { 29 | return [ 30 | 'email' => 'required|email', 31 | 'name' => 'required', 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/message.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::layout') 2 | {{-- Header --}} 3 | @slot('header') 4 | @component('mail::header', ['url' => config('app.url')]) 5 | {{ config('app.name') }} 6 | @endcomponent 7 | @endslot 8 | 9 | {{-- Body --}} 10 | {{ $slot }} 11 | 12 | {{-- Subcopy --}} 13 | @if (isset($subcopy)) 14 | @slot('subcopy') 15 | @component('mail::subcopy') 16 | {{ $subcopy }} 17 | @endcomponent 18 | @endslot 19 | @endif 20 | 21 | {{-- Footer --}} 22 | @slot('footer') 23 | @component('mail::footer') 24 | © {{ date('Y') }} {{ config('app.name') }}. All rights reserved. 25 | @endcomponent 26 | @endslot 27 | @endcomponent 28 | -------------------------------------------------------------------------------- /app/Http/Breadcrumbs/Backend/Access/Role.php: -------------------------------------------------------------------------------- 1 | parent('admin.dashboard'); 5 | $breadcrumbs->push(trans('menus.backend.access.roles.management'), route('admin.access.role.index')); 6 | }); 7 | 8 | Breadcrumbs::register('admin.access.role.create', function ($breadcrumbs) { 9 | $breadcrumbs->parent('admin.access.role.index'); 10 | $breadcrumbs->push(trans('menus.backend.access.roles.create'), route('admin.access.role.create')); 11 | }); 12 | 13 | Breadcrumbs::register('admin.access.role.edit', function ($breadcrumbs, $id) { 14 | $breadcrumbs->parent('admin.access.role.index'); 15 | $breadcrumbs->push(trans('menus.backend.access.roles.edit'), route('admin.access.role.edit', $id)); 16 | }); 17 | -------------------------------------------------------------------------------- /database/seeds/Access/PermissionRoleSeeder.php: -------------------------------------------------------------------------------- 1 | disableForeignKeys(); 23 | $this->truncate(config('access.permission_role_table')); 24 | 25 | /* 26 | * Assign view backend to executive role as example 27 | */ 28 | Role::find(2)->permissions()->sync([1]); 29 | 30 | $this->enableForeignKeys(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_users-list.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Component: Users List 3 | * --------------------- 4 | */ 5 | .users-list { 6 | @extend .list-unstyled; 7 | > li { 8 | width: 25%; 9 | float: left; 10 | padding: 10px; 11 | text-align: center; 12 | img { 13 | @include border-radius-same(50%); 14 | max-width: 100%; 15 | height: auto; 16 | } 17 | > a:hover { 18 | &, 19 | .users-list-name { 20 | color: #999; 21 | } 22 | } 23 | } 24 | } 25 | .users-list-name, 26 | .users-list-date { 27 | display: block; 28 | } 29 | .users-list-name { 30 | font-weight: 600; 31 | color: #444; 32 | overflow: hidden; 33 | white-space: nowrap; 34 | text-overflow: ellipsis; 35 | } 36 | .users-list-date { 37 | color: #999; 38 | font-size: 12px; 39 | } 40 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-bootstrap-4.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 |
      3 | 4 | @if ($paginator->onFirstPage()) 5 |
    • «
    • 6 | @else 7 |
    • 8 | @endif 9 | 10 | 11 | @if ($paginator->hasMorePages()) 12 |
    • 13 | @else 14 |
    • »
    • 15 | @endif 16 |
    17 | @endif 18 | -------------------------------------------------------------------------------- /database/migrations/2017_04_23_002118_create_wishlists_table.php: -------------------------------------------------------------------------------- 1 | string('id'); 18 | $table->primary('id'); 19 | $table->longText('data'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('wishlists'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Repositories/BaseRepository.php: -------------------------------------------------------------------------------- 1 | query()->get(); 16 | } 17 | 18 | /** 19 | * @return mixed 20 | */ 21 | public function getCount() 22 | { 23 | return $this->query()->count(); 24 | } 25 | 26 | /** 27 | * @param $id 28 | * 29 | * @return mixed 30 | */ 31 | public function find($id) 32 | { 33 | return $this->query()->find($id); 34 | } 35 | 36 | /** 37 | * @return mixed 38 | */ 39 | public function query() 40 | { 41 | return call_user_func(static::MODEL.'::query'); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /database/migrations/2017_04_22_221935_create_appliances_table.php: -------------------------------------------------------------------------------- 1 | string('id'); 18 | $table->primary('id'); 19 | $table->longText('data'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('appliances'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Mfa/Domain/Excecption/UserWishlistNotFoundException.php: -------------------------------------------------------------------------------- 1 | userId = $userId; 23 | } 24 | 25 | /** 26 | * @return string 27 | */ 28 | public function getUserId() 29 | { 30 | return $this->userId; 31 | } 32 | } -------------------------------------------------------------------------------- /tests/Backend/Forms/Search/SearchFormTest.php: -------------------------------------------------------------------------------- 1 | actingAs($this->admin) 13 | ->visit('/admin/search') 14 | ->seePageIs('/admin/dashboard') 15 | ->see('Please enter a search term.'); 16 | } 17 | 18 | public function testSearchFormRedirectsToResults() 19 | { 20 | $this->actingAs($this->admin) 21 | ->visit('/admin/dashboard') 22 | ->type('Test Query', 'q') 23 | ->press('search-btn') 24 | ->seePageIs('/admin/search?q=Test%20Query') 25 | ->see('Search Results for Test Query'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/Requests/Frontend/User/ChangePasswordRequest.php: -------------------------------------------------------------------------------- 1 | user()->canChangePassword(); 20 | } 21 | 22 | /** 23 | * Get the validation rules that apply to the request. 24 | * 25 | * @return array 26 | */ 27 | public function rules() 28 | { 29 | return [ 30 | 'old_password' => 'required', 31 | 'password' => 'required|min:6|confirmed', 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Mfa/Domain/ApplianceDescription.php: -------------------------------------------------------------------------------- 1 | title = $title; 21 | $this->description = $description; 22 | } 23 | 24 | /** 25 | * @return string 26 | */ 27 | public function getTitle() 28 | { 29 | return $this->title; 30 | } 31 | 32 | /** 33 | * @return string 34 | */ 35 | public function getDescription() 36 | { 37 | return $this->description; 38 | } 39 | } -------------------------------------------------------------------------------- /resources/views/vendor/mail/html/button.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 |
    4 | 5 | 6 | 15 | 16 |
    7 | 8 | 9 | 12 | 13 |
    10 | {{ $slot }} 11 |
    14 |
    17 |
    20 | -------------------------------------------------------------------------------- /src/Mfa/Domain/Excecption/WishlistWithIdNotFoundException.php: -------------------------------------------------------------------------------- 1 | wishlistId = $wishlistId; 23 | } 24 | 25 | /** 26 | * @return string 27 | */ 28 | public function getWishlistId() 29 | { 30 | return $this->wishlistId; 31 | } 32 | } -------------------------------------------------------------------------------- /app/Providers/BladeServiceProvider.php: -------------------------------------------------------------------------------- 1 | has('lang-rtl')): ?>"; 31 | }); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/Mfa/Application/Command/CreateWishlistCommand.php: -------------------------------------------------------------------------------- 1 | wishlistId = $wishlistId; 21 | $this->userId = $userId; 22 | } 23 | 24 | /** 25 | * @return string 26 | */ 27 | public function getWishlistId() 28 | { 29 | return $this->wishlistId; 30 | } 31 | 32 | /** 33 | * @return string 34 | */ 35 | public function getUserId() 36 | { 37 | return $this->userId; 38 | } 39 | } -------------------------------------------------------------------------------- /src/Mfa/Domain/Excecption/ApplianceWithIdNotFoundException.php: -------------------------------------------------------------------------------- 1 | applianceId = $applianceId; 23 | } 24 | 25 | /** 26 | * @return string 27 | */ 28 | public function getApplianceId() 29 | { 30 | return $this->applianceId; 31 | } 32 | } -------------------------------------------------------------------------------- /resources/assets/sass/backend/_alerts.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Component: alert 3 | * ---------------- 4 | */ 5 | 6 | .alert { 7 | @include border-radius-same(3px); 8 | h4 { 9 | font-weight: 600; 10 | } 11 | .icon { 12 | margin-right: 10px; 13 | } 14 | .close { 15 | color: #000; 16 | @include opacity(.2); 17 | &:hover { 18 | @include opacity(.5); 19 | } 20 | } 21 | a { 22 | color: #fff; 23 | text-decoration: underline; 24 | } 25 | } 26 | 27 | //Alert Variants 28 | .alert-success { 29 | @extend .bg-green; 30 | border-color: darken($green, 5%); 31 | } 32 | .alert-danger, 33 | .alert-error { 34 | @extend .bg-red; 35 | border-color: darken($red, 5%); 36 | } 37 | .alert-warning { 38 | @extend .bg-yellow; 39 | border-color: darken($yellow, 5%); 40 | } 41 | .alert-info { 42 | @extend .bg-aqua; 43 | border-color: darken($aqua, 5%); 44 | } 45 | -------------------------------------------------------------------------------- /src/Mfa/Domain/Excecption/ApplianceWithExternalIdNotFoundException.php: -------------------------------------------------------------------------------- 1 | externalId = $externalId; 23 | } 24 | 25 | /** 26 | * @return string 27 | */ 28 | public function getExternalId() 29 | { 30 | return $this->externalId; 31 | } 32 | } -------------------------------------------------------------------------------- /resources/assets/sass/backend/_404_500_errors.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Page: 400 and 500 error pages 3 | * ------------------------------ 4 | */ 5 | .error-page { 6 | width: 600px; 7 | margin: 20px auto 0 auto; 8 | @media (max-width: $screen-sm-max) { 9 | width: 100%; 10 | } 11 | //For the error number e.g: 404 12 | > .headline { 13 | float: left; 14 | font-size: 100px; 15 | font-weight: 300; 16 | @media (max-width: $screen-sm-max) { 17 | float: none; 18 | text-align: center; 19 | } 20 | } 21 | //For the message 22 | > .error-content { 23 | margin-left: 190px; 24 | @media (max-width: $screen-sm-max) { 25 | margin-left: 0; 26 | } 27 | > h3 { 28 | font-weight: 300; 29 | font-size: 25px; 30 | @media(max-width: $screen-sm-max) { 31 | text-align: center; 32 | } 33 | } 34 | display: block; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | ]; 22 | -------------------------------------------------------------------------------- /src/Mfa/Application/Command/AddApplianceToWishlistCommand.php: -------------------------------------------------------------------------------- 1 | userId = $userId; 21 | $this->applianceId = $applianceId; 22 | } 23 | 24 | /** 25 | * @return string 26 | */ 27 | public function getUserId() 28 | { 29 | return $this->userId; 30 | } 31 | 32 | /** 33 | * @return string 34 | */ 35 | public function getApplianceId() 36 | { 37 | return $this->applianceId; 38 | } 39 | } -------------------------------------------------------------------------------- /app/Repositories/Backend/Access/User/UserSessionRepository.php: -------------------------------------------------------------------------------- 1 | id === access()->id()) { 22 | throw new GeneralException(trans('exceptions.backend.access.users.cant_delete_own_session')); 23 | } 24 | if (config('session.driver') != 'database') { 25 | throw new GeneralException(trans('exceptions.backend.access.users.session_wrong_driver')); 26 | } 27 | 28 | return $user->sessions()->delete(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Mfa/Application/Command/RemoveApplianceFromWishlistCommand.php: -------------------------------------------------------------------------------- 1 | userId = $userId; 21 | $this->applianceId = $applianceId; 22 | } 23 | 24 | /** 25 | * @return string 26 | */ 27 | public function getUserId() 28 | { 29 | return $this->userId; 30 | } 31 | 32 | /** 33 | * @return string 34 | */ 35 | public function getApplianceId() 36 | { 37 | return $this->applianceId; 38 | } 39 | } -------------------------------------------------------------------------------- /app/Http/Controllers/Backend/Access/User/UserConfirmationController.php: -------------------------------------------------------------------------------- 1 | notify(new UserNeedsConfirmation($user->confirmation_code)); 24 | 25 | return redirect()->back()->withFlashSuccess(trans('alerts.backend.users.confirmation_email')); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /resources/views/frontend/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('frontend.layouts.app') 2 | 3 | @section('content') 4 |
    5 | 6 |
    7 | 8 |
    9 |
    10 | {{ trans('navs.general.home') }} 11 |
    12 | 13 |
    14 |

    {{ trans('strings.frontend.welcome_to', ['place' => app_name()]) }}.

    15 |

    {{ trans('strings.frontend.homepage') }}.

    16 |

    Fork me on GitHub: josecelano/ddd-laravel-sample 17 |

    18 |
    19 |
    20 | 21 |
    22 | 23 |
    24 | @endsection -------------------------------------------------------------------------------- /app/Providers/MacroServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->singleton('form', function ($app) { 33 | $form = new Macros($app['html'], $app['url'], $app['view'], $app['session.store']->token()); 34 | 35 | return $form->setSessionStore($app['session.store']); 36 | }); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Models/Access/Permission/Permission.php: -------------------------------------------------------------------------------- 1 | table = config('access.permissions_table'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 21 | $table->string('token'); 22 | $table->timestamp('created_at')->nullable(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('password_resets'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Mfa/Domain/ApplianceRepository.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'general_error' => 'You do not have access to do that.', 18 | 'socialite' => [ 19 | 'unacceptable' => ':provider is not an acceptable login type.', 20 | ], 21 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 22 | 'unknown' => 'An unknown error occurred', 23 | ]; 24 | -------------------------------------------------------------------------------- /app/Http/Controllers/Backend/Search/SearchController.php: -------------------------------------------------------------------------------- 1 | has('q')) { 21 | return redirect() 22 | ->route('admin.dashboard') 23 | ->withFlashDanger(trans('strings.backend.search.empty')); 24 | } 25 | 26 | /** 27 | * Process Search Results Here. 28 | */ 29 | $results = null; 30 | 31 | return view('backend.search.index') 32 | ->withSearchTerm($request->get('q')) 33 | ->withResults($results); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Http/Requests/Backend/Access/User/StoreUserRequest.php: -------------------------------------------------------------------------------- 1 | hasRole(1); 21 | } 22 | 23 | /** 24 | * Get the validation rules that apply to the request. 25 | * 26 | * @return array 27 | */ 28 | public function rules() 29 | { 30 | return [ 31 | 'name' => 'required|max:255', 32 | 'email' => ['required', 'email', 'max:255', Rule::unique('users')], 33 | 'password' => 'required|min:6|confirmed', 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /resources/views/frontend/appliance/list.blade.php: -------------------------------------------------------------------------------- 1 | @extends('frontend.layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    {{ trans('appliances.category.small_appliances') }}
    8 |
    9 |
    10 |
    11 | @foreach($appliances as $appliance) 12 | @include('frontend.appliance.list-item') 13 | @endforeach 14 |
    15 |
    16 | {{ $appliances->links() }} 17 |
    18 |
    19 |
    20 |
    21 | @endsection -------------------------------------------------------------------------------- /database/migrations/2017_04_24_222127_create_wishlist_item_feedbacks_table.php: -------------------------------------------------------------------------------- 1 | string('id'); 19 | $table->longText('data'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | /** @noinspection PhpUndefinedMethodInspection */ 31 | Schema::dropIfExists('wishlist_item_feedbacks'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Models/Access/User/Traits/Relationship/UserRelationship.php: -------------------------------------------------------------------------------- 1 | belongsToMany(config('access.role'), config('access.role_user_table'), 'user_id', 'role_id'); 21 | } 22 | 23 | /** 24 | * @return mixed 25 | */ 26 | public function providers() 27 | { 28 | return $this->hasMany(SocialLogin::class); 29 | } 30 | 31 | /** 32 | * @return mixed 33 | */ 34 | public function sessions() 35 | { 36 | return $this->hasMany(Session::class); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Breadcrumbs/Backend/LogViewer.php: -------------------------------------------------------------------------------- 1 | parent('admin.dashboard'); 5 | $breadcrumbs->push(trans('menus.backend.log-viewer.main'), url('admin/log-viewer')); 6 | }); 7 | 8 | Breadcrumbs::register('log-viewer::logs.list', function ($breadcrumbs) { 9 | $breadcrumbs->parent('log-viewer::dashboard'); 10 | $breadcrumbs->push(trans('menus.backend.log-viewer.logs'), url('admin/log-viewer/logs')); 11 | }); 12 | 13 | Breadcrumbs::register('log-viewer::logs.show', function ($breadcrumbs, $date) { 14 | $breadcrumbs->parent('log-viewer::logs.list'); 15 | $breadcrumbs->push($date, url('admin/log-viewer/'.$date)); 16 | }); 17 | 18 | Breadcrumbs::register('log-viewer::logs.filter', function ($breadcrumbs, $date, $filter) { 19 | $breadcrumbs->parent('log-viewer::logs.show', $date); 20 | $breadcrumbs->push(ucfirst($filter), url('admin/log-viewer/'.$date.'/'.$filter)); 21 | }); 22 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_login_and_register.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Page: Login & Register 3 | * ---------------------- 4 | */ 5 | 6 | .login-logo, 7 | .register-logo { 8 | font-size: 35px; 9 | text-align: center; 10 | margin-bottom: 25px; 11 | font-weight: 300; 12 | a { 13 | color: #444; 14 | } 15 | } 16 | 17 | .login-page, 18 | .register-page { 19 | background: $gray; 20 | } 21 | 22 | .login-box, 23 | .register-box { 24 | width: 360px; 25 | margin: 7% auto; 26 | @media (max-width: $screen-sm) { 27 | width: 90%; 28 | margin-top: 20px; 29 | } 30 | } 31 | 32 | .login-box-body, 33 | .register-box-body { 34 | background: #fff; 35 | padding: 20px; 36 | color: #444; 37 | border-top: 0; 38 | color: #666; 39 | .form-control-feedback { 40 | color: #777; 41 | } 42 | } 43 | .login-box-msg, 44 | .register-box-msg { 45 | margin: 0; 46 | text-align: center; 47 | padding: 0 20px 20px 20px; 48 | } 49 | .social-auth-links { 50 | margin: 10px 0; 51 | } 52 | -------------------------------------------------------------------------------- /app/Http/Controllers/Backend/Access/User/UserSessionController.php: -------------------------------------------------------------------------------- 1 | clearSession($user); 25 | 26 | return redirect()->back()->withFlashSuccess(trans('alerts.backend.users.session_cleared')); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /database/TruncateTable.php: -------------------------------------------------------------------------------- 1 | truncate(); 22 | 23 | case 'pgsql': 24 | return DB::statement('TRUNCATE TABLE '.$table.' RESTART IDENTITY CASCADE'); 25 | 26 | case 'sqlite': 27 | return DB::statement('DELETE FROM '.$table); 28 | } 29 | 30 | return false; 31 | } 32 | 33 | /** 34 | * @param array $tables 35 | */ 36 | protected function truncateMultiple(array $tables) 37 | { 38 | foreach ($tables as $table) { 39 | $this->truncate($table); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Models/Wishlist/WishlistReadModel.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Models\Access\User\User'); 29 | } 30 | 31 | public function appliances() 32 | { 33 | return $this->belongsToMany('\App\Models\Appliance\ApplianceReadModel', 'appliance_wishlist_read_model', 'wishlist_id', 'appliance_id') 34 | ->withTimestamps(); 35 | } 36 | } -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 21 | $table->string('name'); 22 | $table->string('email')->unique(); 23 | $table->string('password')->nullable(); 24 | $table->rememberToken(); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('users'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /resources/views/frontend/user/account/tabs/profile.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
    {{ trans('labels.frontend.user.profile.avatar') }}
    {{ trans('labels.frontend.user.profile.name') }}{{ $logged_in_user->name }}
    {{ trans('labels.frontend.user.profile.email') }}{{ $logged_in_user->email }}
    {{ trans('labels.frontend.user.profile.created_at') }}{{ $logged_in_user->created_at }} ({{ $logged_in_user->created_at->diffForHumans() }})
    {{ trans('labels.frontend.user.profile.last_updated') }}{{ $logged_in_user->updated_at }} ({{ $logged_in_user->updated_at->diffForHumans() }})
    -------------------------------------------------------------------------------- /database/migrations/2017_04_04_131153_create_sessions_table.php: -------------------------------------------------------------------------------- 1 | string('id')->unique(); 18 | $table->unsignedInteger('user_id')->nullable(); 19 | $table->string('ip_address', 45)->nullable(); 20 | $table->text('user_agent')->nullable(); 21 | $table->text('payload'); 22 | $table->integer('last_activity'); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('sessions'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Providers/ComposerServiceProvider.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('wishlist_id'); 19 | $table->unique('wishlist_id'); 20 | $table->integer('user_id')->unsigned(); 21 | $table->foreign('user_id')->references('id')->on('users'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('read_wishlists'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_products.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Component: Products List 3 | * ------------------------ 4 | */ 5 | .products-list { 6 | list-style: none; 7 | margin: 0; 8 | padding: 0; 9 | > .item { 10 | @include border-radius-same($box-border-radius); 11 | @include box-shadow($box-boxshadow); 12 | @include clearfix; 13 | padding: 10px 0; 14 | background: #fff; 15 | } 16 | .product-img { 17 | float: left; 18 | img { 19 | width: 50px; 20 | height: 50px; 21 | } 22 | } 23 | .product-info { 24 | margin-left: 60px; 25 | } 26 | .product-title { 27 | font-weight: 600; 28 | } 29 | .product-description { 30 | display: block; 31 | color: #999; 32 | overflow: hidden; 33 | white-space: nowrap; 34 | text-overflow: ellipsis; 35 | } 36 | } 37 | .product-list-in-box > .item { 38 | @include box-shadow(none); 39 | @include border-radius-same(0); 40 | border-bottom: 1px solid $box-border-color; 41 | &:last-of-type { 42 | border-bottom-width: 0; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /tests/Backend/Routes/LogViewerRouteTest.php: -------------------------------------------------------------------------------- 1 | actingAs($this->admin) 13 | ->visit('/admin/log-viewer') 14 | ->see('Log Viewer'); 15 | } 16 | 17 | public function testLogViewerList() 18 | { 19 | $this->actingAs($this->admin) 20 | ->visit('/admin/log-viewer/logs') 21 | ->see('Logs'); 22 | } 23 | 24 | public function testLogViewerSingle() 25 | { 26 | $this->actingAs($this->admin) 27 | ->visit('/admin/log-viewer/logs/'.date('Y-m-d')) 28 | ->see('Log ['.date('Y-m-d').']'); 29 | } 30 | 31 | public function testLogViewerSingleType() 32 | { 33 | $this->actingAs($this->admin) 34 | ->visit('/admin/log-viewer/logs/'.date('Y-m-d').'/error') 35 | ->see('Log ['.date('Y-m-d').']'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Providers/HistoryServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->bind(HistoryContract::class, EloquentHistoryRepository::class); 23 | $this->app->bind('history', HistoryContract::class); 24 | $this->registerFacade(); 25 | } 26 | 27 | public function registerFacade() 28 | { 29 | $this->app->booting(function () { 30 | $loader = \Illuminate\Foundation\AliasLoader::getInstance(); 31 | $loader->alias('History', HistoryFacade::class); 32 | }); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Models/Appliance/ApplianceReadModel.php: -------------------------------------------------------------------------------- 1 | belongsToMany('\App\Models\Wishlist\WishlistReadModel', 'appliance_wishlist_read_model', 'wishlist_id', 'appliance_id') 37 | ->withTimestamps(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /resources/views/vendor/log-viewer/_partials/menu.blade.php: -------------------------------------------------------------------------------- 1 |
    2 |
    Levels
    3 | 24 |
    25 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_callout.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Component: Callout 3 | * ------------------ 4 | */ 5 | 6 | // Base styles (regardless of theme) 7 | .callout { 8 | @include border-radius-same(3px); 9 | margin: 0 0 20px 0; 10 | padding: 15px 30px 15px 15px; 11 | border-left: 5px solid #eee; 12 | a { 13 | color: #fff; 14 | text-decoration: underline; 15 | &:hover { 16 | color: #eee; 17 | } 18 | } 19 | h4 { 20 | margin-top: 0; 21 | font-weight: 600; 22 | } 23 | p:last-child { 24 | margin-bottom: 0; 25 | } 26 | code, 27 | .highlight { 28 | background-color: #fff; 29 | } 30 | 31 | // Themes for different contexts 32 | &.callout-danger { 33 | @extend .bg-red; 34 | border-color: darken($red, 10%); 35 | } 36 | &.callout-warning { 37 | @extend .bg-yellow; 38 | border-color: darken($yellow, 10%); 39 | } 40 | &.callout-info { 41 | @extend .bg-aqua; 42 | border-color: darken($aqua, 10%); 43 | } 44 | &.callout-success { 45 | @extend .bg-green; 46 | border-color: darken($green, 10%); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/Http/Controllers/Frontend/Auth/ChangePasswordController.php: -------------------------------------------------------------------------------- 1 | user = $user; 27 | } 28 | 29 | /** 30 | * @param ChangePasswordRequest $request 31 | * 32 | * @return mixed 33 | */ 34 | public function changePassword(ChangePasswordRequest $request) 35 | { 36 | $this->user->changePassword($request->all()); 37 | 38 | return redirect()->route('frontend.user.account')->withFlashSuccess(trans('strings.frontend.user.password_updated')); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /resources/assets/sass/frontend/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f5f8fa; 3 | 4 | // Borders 5 | $laravel-border-color: darken($body-bg, 10%); 6 | $list-group-border: $laravel-border-color; 7 | $navbar-default-border: $laravel-border-color; 8 | $panel-default-border: $laravel-border-color; 9 | $panel-inner-border: $laravel-border-color; 10 | 11 | // Brands 12 | $brand-primary: #3097D1; 13 | $brand-info: #8eb4cb; 14 | $brand-success: #2ab27b; 15 | $brand-warning: #cbb956; 16 | $brand-danger: #bf5329; 17 | 18 | // Typography 19 | $fa-font-path: "~font-awesome/fonts/"; 20 | $icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/"; 21 | $font-family-sans-serif: "Raleway", sans-serif; 22 | $font-size-base: 14px; 23 | $line-height-base: 1.6; 24 | $text-color: #636b6f; 25 | 26 | // Navbar 27 | $navbar-default-bg: #fff; 28 | 29 | // Buttons 30 | $btn-default-color: $text-color; 31 | 32 | // Inputs 33 | $input-border: lighten($text-color, 40%); 34 | $input-border-focus: lighten($brand-primary, 25%); 35 | $input-color-placeholder: lighten($text-color, 30%); 36 | 37 | // Panels 38 | $panel-default-heading-bg: #fff; -------------------------------------------------------------------------------- /app/Models/Access/Role/Role.php: -------------------------------------------------------------------------------- 1 | table = config('access.roles_table'); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/Http/Middleware/RouteNeedsRole.php: -------------------------------------------------------------------------------- 1 | hasRoles($roles, ($needsAll === 'true' ? true : false)); 28 | } else { 29 | /** 30 | * Single role. 31 | */ 32 | $access = access()->hasRole($role); 33 | } 34 | 35 | if (! $access) { 36 | return redirect() 37 | ->route('frontend.index') 38 | ->withFlashDanger(trans('auth.general_error')); 39 | } 40 | 41 | return $next($request); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/Mfa/Domain/Event/ApplianceWasAddedToWishlist.php: -------------------------------------------------------------------------------- 1 | wishlist = $wishlist; 26 | $this->applianceId = $applianceId; 27 | } 28 | 29 | /** 30 | * @return Wishlist 31 | */ 32 | public function getWishlist() 33 | { 34 | return $this->wishlist; 35 | } 36 | 37 | /** 38 | * @return ApplianceId 39 | */ 40 | public function getApplianceId() 41 | { 42 | return $this->applianceId; 43 | } 44 | } -------------------------------------------------------------------------------- /src/Mfa/Domain/Event/ApplianceWasRemovedFromWishlist.php: -------------------------------------------------------------------------------- 1 | wishlist = $wishlist; 26 | $this->applianceId = $applianceId; 27 | } 28 | 29 | /** 30 | * @return Wishlist 31 | */ 32 | public function getWishlist() 33 | { 34 | return $this->wishlist; 35 | } 36 | 37 | /** 38 | * @return ApplianceId 39 | */ 40 | public function getApplianceId() 41 | { 42 | return $this->applianceId; 43 | } 44 | } -------------------------------------------------------------------------------- /resources/assets/sass/backend/_print.scss: -------------------------------------------------------------------------------- 1 | @media print { 2 | //Add to elements that you do not want to show when printing 3 | .no-print { 4 | display: none !important; 5 | } 6 | //Elements that we want to hide when printing 7 | .main-sidebar, 8 | .left-side, 9 | .main-header, 10 | .content-header { 11 | @extend .no-print; 12 | } 13 | //This is the only element that should appear, so let's remove the margins 14 | .content-wrapper, 15 | .right-side, 16 | .main-footer { 17 | margin-left: 0 !important; 18 | min-height: 0 !important; 19 | @include translate(0, 0); 20 | } 21 | .fixed .content-wrapper, 22 | .fixed .right-side { 23 | padding-top: 0!important; 24 | } 25 | //Invoice printing 26 | .invoice { 27 | width: 100%; 28 | border: 0; 29 | margin: 0; 30 | padding: 0; 31 | } 32 | .invoice-col { 33 | float: left; 34 | width: 33.3333333%; 35 | } 36 | //Make sure table content displays properly 37 | .table-responsive { 38 | overflow: auto; 39 | > .table tr th, 40 | > .table tr td { 41 | white-space: normal!important; 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /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' => realpath(storage_path('framework/views')), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /resources/views/backend/access/includes/partials/role-header-buttons.blade.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 18 | 19 |
    -------------------------------------------------------------------------------- /resources/lang/en/navs.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'home' => 'Home', 18 | 'logout' => 'Logout', 19 | ], 20 | 21 | 'frontend' => [ 22 | 'wishlist' => 'Wishlist', 23 | 'dashboard' => 'Dashboard', 24 | 'login' => 'Login', 25 | 'macros' => 'Macros', 26 | 'register' => 'Register', 27 | 28 | 'user' => [ 29 | 'account' => 'My Account', 30 | 'administration' => 'Administration', 31 | 'change_password' => 'Change Password', 32 | 'my_information' => 'My Information', 33 | 'profile' => 'Profile', 34 | ], 35 | ], 36 | ]; 37 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-red-light.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Red 3 | * --------- 4 | */ 5 | 6 | .skin-red-light { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($red, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($red, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($red, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant($red); 36 | } 37 | 38 | li.user-header { 39 | background-color: $red; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-light-sidebar($red); 50 | } 51 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-red.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Red 3 | * --------- 4 | */ 5 | 6 | .skin-red { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($red, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($red, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($red, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant(darken($red, 5%)); 36 | } 37 | 38 | li.user-header { 39 | background-color: $red; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-dark-sidebar($red); 50 | } 51 | -------------------------------------------------------------------------------- /app/Models/Wishlist/WishlistItemFeedbackReadModel.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Models\Access\User\User'); 27 | } 28 | 29 | /** 30 | * Get the wishlist which has got the feedback. 31 | */ 32 | public function wishlist() 33 | { 34 | return $this->belongsTo('App\Models\Wishlist\WishlistReadModel'); 35 | } 36 | 37 | /** 38 | * Get the concrete appliance which has got the feedback. 39 | */ 40 | public function appliance() 41 | { 42 | return $this->belongsTo('App\Models\Appliance\ApplianceReadModel'); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/Http/Middleware/RouteNeedsPermission.php: -------------------------------------------------------------------------------- 1 | allowMultiple($permissions, ($needsAll === 'true' ? true : false)); 28 | } else { 29 | /** 30 | * Single permission. 31 | */ 32 | $access = access()->allow($permission); 33 | } 34 | 35 | if (! $access) { 36 | return redirect() 37 | ->route('frontend.index') 38 | ->withFlashDanger(trans('auth.general_error')); 39 | } 40 | 41 | return $next($request); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-green-light.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Green 3 | * ----------- 4 | */ 5 | 6 | .skin-green-light { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($green, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($green, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($green, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant($green); 36 | } 37 | 38 | li.user-header { 39 | background-color: $green; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-light-sidebar($green); 50 | 51 | } 52 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-green.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Green 3 | * ----------- 4 | */ 5 | 6 | .skin-green { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($green, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($green, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($green, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant(darken($green, 5%)); 36 | } 37 | 38 | li.user-header { 39 | background-color: $green; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-dark-sidebar($green); 50 | 51 | } 52 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-purple-light.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Purple 3 | * ------------ 4 | */ 5 | 6 | .skin-purple-light { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($purple, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($purple, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($purple, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant($purple); 36 | } 37 | 38 | li.user-header { 39 | background-color: $purple; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-light-sidebar($purple); 50 | } 51 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-purple.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Purple 3 | * ------------ 4 | */ 5 | 6 | .skin-purple { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($purple, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($purple, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($purple, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant(darken($purple, 5%)); 36 | } 37 | 38 | li.user-header { 39 | background-color: $purple; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-dark-sidebar($purple); 50 | } 51 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-yellow-light.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Yellow 3 | * ------------ 4 | */ 5 | 6 | .skin-yellow-light { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($yellow, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($yellow, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($yellow, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant($yellow); 36 | } 37 | 38 | li.user-header { 39 | background-color: $yellow; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-light-sidebar($yellow); 50 | } 51 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-yellow.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Yellow 3 | * ------------ 4 | */ 5 | 6 | .skin-yellow { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($yellow, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($yellow, 5%); 15 | } 16 | } 17 | @media(max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255,255,255,0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($yellow, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant(darken($yellow, 5%)); 36 | } 37 | 38 | li.user-header { 39 | background-color: $yellow; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-dark-sidebar($yellow); 50 | } 51 | -------------------------------------------------------------------------------- /config/no-captcha.php: -------------------------------------------------------------------------------- 1 | getenv('NOCAPTCHA_SECRET') ?: 'no-captcha-secret', 10 | 'sitekey' => getenv('NOCAPTCHA_SITEKEY') ?: 'no-captcha-sitekey', 11 | 12 | /* ------------------------------------------------------------------------------------------------ 13 | | Localization 14 | | ------------------------------------------------------------------------------------------------ 15 | */ 16 | 'lang' => app()->getLocale(), 17 | 18 | /* ------------------------------------------------------------------------------------------------ 19 | | Attributes 20 | | ------------------------------------------------------------------------------------------------ 21 | */ 22 | 'attributes' => [ 23 | 'data-theme' => null, // 'light', 'dark' 24 | 'data-type' => null, // 'image', 'audio' 25 | 'data-size' => null, // 'normal', 'compact' 26 | ], 27 | ]; 28 | -------------------------------------------------------------------------------- /tests/Backend/Access/User/UserAccessTest.php: -------------------------------------------------------------------------------- 1 | visit('/') 13 | ->actingAs($this->user) 14 | ->visit('/admin/dashboard') 15 | ->seePageIs('/') 16 | ->see('You do not have access to do that.'); 17 | } 18 | 19 | public function testExecutiveCanAccessAdminDashboard() 20 | { 21 | $this->visit('/') 22 | ->actingAs($this->executive) 23 | ->visit('/admin/dashboard') 24 | ->seePageIs('/admin/dashboard') 25 | ->see($this->executive->name); 26 | } 27 | 28 | public function testExecutiveCantAccessManageRoles() 29 | { 30 | $this->visit('/') 31 | ->actingAs($this->executive) 32 | ->visit('/admin/dashboard') 33 | ->seePageIs('/admin/dashboard') 34 | ->visit('/admin/access/role') 35 | ->seePageIs('/') 36 | ->see('You do not have access to do that.'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.15.3", 14 | "bootstrap-sass": "^3.3.7", 15 | "cross-env": "^3.2.3", 16 | "font-awesome": "^4.7.0", 17 | "jquery": "^3.1.1", 18 | "laravel-mix": "0.*", 19 | "lodash": "^4.17.4", 20 | "vue": "^2.1.10", 21 | "webpack-rtl-plugin": "^1.5.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /database/migrations/2015_12_28_171741_create_social_logins_table.php: -------------------------------------------------------------------------------- 1 | increments('id')->unsigned(); 21 | $table->integer('user_id')->unsigned(); 22 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 23 | $table->string('provider', 32); 24 | $table->string('provider_id'); 25 | $table->string('token')->nullable(); 26 | $table->string('avatar')->nullable(); 27 | $table->timestamps(); 28 | }); 29 | } 30 | 31 | /** 32 | * Reverse the migrations. 33 | * 34 | * @return void 35 | */ 36 | public function down() 37 | { 38 | Schema::dropIfExists('social_logins'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /database/migrations/2017_05_07_203028_create_read_appliances_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('appliance_id'); 19 | $table->unique('appliance_id'); 20 | $table->string('external_id'); 21 | $table->string('title'); 22 | $table->string('description'); 23 | $table->string('image'); 24 | $table->string('category'); 25 | $table->integer('price_amount'); 26 | $table->string('price_currency'); 27 | $table->timestamps(); 28 | }); 29 | } 30 | 31 | /** 32 | * Reverse the migrations. 33 | * 34 | * @return void 35 | */ 36 | public function down() 37 | { 38 | Schema::dropIfExists('read_appliances'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | ./app 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | ./tests 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /database/seeds/HistoryTypeTableSeeder.php: -------------------------------------------------------------------------------- 1 | disableForeignKeys(); 24 | $this->truncate('history_types'); 25 | 26 | $types = [ 27 | [ 28 | 'id' => 1, 29 | 'name' => 'User', 30 | 'created_at' => Carbon::now(), 31 | 'updated_at' => Carbon::now(), 32 | ], 33 | [ 34 | 'id' => 2, 35 | 'name' => 'Role', 36 | 'created_at' => Carbon::now(), 37 | 'updated_at' => Carbon::now(), 38 | ], 39 | ]; 40 | 41 | DB::table('history_types')->insert($types); 42 | 43 | $this->enableForeignKeys(); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /database/seeds/Access/UserRoleSeeder.php: -------------------------------------------------------------------------------- 1 | disableForeignKeys(); 22 | $this->truncate(config('access.role_user_table')); 23 | 24 | //Attach admin role to admin user 25 | $user_model = config('auth.providers.users.model'); 26 | $user_model = new $user_model(); 27 | $user_model::first()->attachRole(1); 28 | 29 | //Attach executive role to executive user 30 | $user_model = config('auth.providers.users.model'); 31 | $user_model = new $user_model(); 32 | $user_model::find(2)->attachRole(2); 33 | 34 | //Attach user role to general user 35 | $user_model = config('auth.providers.users.model'); 36 | $user_model = new $user_model(); 37 | $user_model::find(3)->attachRole(3); 38 | 39 | $this->enableForeignKeys(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | 'Frontend', 'as' => 'frontend.'], function () { 18 | includeRouteFiles(__DIR__.'/Frontend/'); 19 | }); 20 | 21 | /* ----------------------------------------------------------------------- */ 22 | 23 | /* 24 | * Backend Routes 25 | * Namespaces indicate folder structure 26 | */ 27 | Route::group(['namespace' => 'Backend', 'prefix' => 'admin', 'as' => 'admin.', 'middleware' => 'admin'], function () { 28 | /* 29 | * These routes need view-backend permission 30 | * (good if you want to allow more than one group in the backend, 31 | * then limit the backend features by different roles or permissions) 32 | * 33 | * Note: Administrator has all permissions so you do not have to specify the administrator role everywhere. 34 | */ 35 | includeRouteFiles(__DIR__.'/Backend/'); 36 | }); 37 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/_table.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Component: Table 3 | * ---------------- 4 | */ 5 | 6 | .table { 7 | //Cells 8 | > thead, 9 | > tbody, 10 | > tfoot { 11 | > tr { 12 | > th, 13 | > td { 14 | border-top: 1px solid $box-border-color; 15 | } 16 | } 17 | } 18 | //thead cells 19 | > thead > tr > th { 20 | border-bottom: 2px solid $box-border-color; 21 | } 22 | //progress bars in tables 23 | tr td .progress { 24 | margin-top: 5px; 25 | } 26 | } 27 | 28 | //Bordered Table 29 | .table-bordered { 30 | border: 1px solid $box-border-color; 31 | > thead, 32 | > tbody, 33 | > tfoot { 34 | > tr { 35 | > th, 36 | > td { 37 | border: 1px solid $box-border-color; 38 | } 39 | } 40 | } 41 | > thead > tr { 42 | > th, 43 | > td { 44 | border-bottom-width: 2px; 45 | } 46 | } 47 | } 48 | 49 | .table.no-border { 50 | &, 51 | td, 52 | th { 53 | border: 0; 54 | } 55 | } 56 | 57 | /* .text-center in tables */ 58 | table.text-center { 59 | &, td, th { 60 | text-align: center; 61 | } 62 | } 63 | 64 | .table.align { 65 | th { 66 | text-align: left; 67 | } 68 | td { 69 | text-align: right; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /database/migrations/2017_05_30_184250_create_appliance_read_model_wishlist_read_model_table.php: -------------------------------------------------------------------------------- 1 | integer('wishlist_id')->unsigned()->nullable(); 19 | $table->foreign('wishlist_id')->references('id') 20 | ->on('read_wishlists')->onDelete('cascade'); 21 | 22 | $table->integer('appliance_id')->unsigned()->nullable(); 23 | $table->foreign('appliance_id')->references('id') 24 | ->on('read_appliances')->onDelete('cascade'); 25 | 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('appliance_wishlist_read_model'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /resources/assets/sass/backend/app.scss: -------------------------------------------------------------------------------- 1 | @import "variable-overrides"; 2 | @import "~bootstrap-sass/assets/stylesheets/bootstrap"; 3 | @import "~font-awesome/scss/font-awesome"; 4 | 5 | @import "variables"; 6 | @import "core"; 7 | @import "mixins"; 8 | 9 | // Helpers 10 | @import "../helpers"; 11 | 12 | @import "header"; 13 | @import "sidebar"; 14 | @import "sidebar-mini"; 15 | @import "control-sidebar"; 16 | @import "dropdown"; 17 | @import "forms"; 18 | @import "progress-bars"; 19 | @import "small-box"; 20 | @import "boxes"; 21 | @import "info-box"; 22 | @import "timeline"; 23 | @import "buttons"; 24 | 25 | @import "callout"; 26 | @import "alerts"; 27 | @import "navs"; 28 | @import "products"; 29 | @import "table"; 30 | @import "labels"; 31 | @import "direct-chat"; 32 | @import "users-list"; 33 | @import "carousel"; 34 | @import "modal"; 35 | 36 | // Pages 37 | @import "mailbox"; 38 | @import "lockscreen"; 39 | @import "login_and_register"; 40 | @import "404_500_errors"; 41 | @import "invoice"; 42 | 43 | @import "fullcalendar"; 44 | 45 | // Skins 46 | @import "skins/_all-skins"; 47 | 48 | // Other 49 | @import "custom"; 50 | 51 | // Miscellaneous 52 | @import "miscellaneous"; 53 | @import "print"; 54 | 55 | // Plugins 56 | @import "../plugin/sweetalert/sweetalert.scss"; -------------------------------------------------------------------------------- /src/Mfa/Infrastructure/PersistenceProvider.php: -------------------------------------------------------------------------------- 1 | app->bind( 26 | 'Mfa\Domain\WishlistRepository', 27 | 'Mfa\Infrastructure\Persistence\Eloquent\EloquentWishlistRepository' 28 | ); 29 | $this->app->bind( 30 | 'Mfa\Domain\ApplianceRepository', 31 | 'Mfa\Infrastructure\Persistence\Eloquent\EloquentApplianceRepository' 32 | ); 33 | } 34 | 35 | /** 36 | * Get the services provided by the provider. 37 | * 38 | * @return array 39 | */ 40 | public function provides() 41 | { 42 | return [ 43 | WishlistRepository::class, 44 | ApplianceRepository::class, 45 | ]; 46 | } 47 | } -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('import:dishwashers')->hourly(); 31 | $schedule->command('import:small-appliances')->hourly(); 32 | } 33 | 34 | /** 35 | * Register the Closure based commands for the application. 36 | * 37 | * @return void 38 | */ 39 | protected function commands() 40 | { 41 | /** @noinspection PhpIncludeInspection */ 42 | require base_path('routes/console.php'); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/Http/Requests/Frontend/Auth/RegisterRequest.php: -------------------------------------------------------------------------------- 1 | 'required|max:255', 32 | 'email' => ['required', 'email', 'max:255', Rule::unique('users')], 33 | 'password' => 'required|min:6|confirmed', 34 | 'g-recaptcha-response' => 'required_if:captcha_status,true|captcha', 35 | ]; 36 | } 37 | 38 | /** 39 | * @return array 40 | */ 41 | public function messages() 42 | { 43 | return [ 44 | 'g-recaptcha-response.required_if' => trans('validation.required', ['attribute' => 'captcha']), 45 | ]; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | .logo { 53 | @include logo-variant($light-blue); 54 | } 55 | -------------------------------------------------------------------------------- /app/Repositories/Frontend/WishList/WishlistItemFeedbackRepository.php: -------------------------------------------------------------------------------- 1 | user_id = $data['user_id']; 32 | $wishListItemFeedback->wishlist_id = $data['wishlist_id']; 33 | $wishListItemFeedback->appliance_id = $data['appliance_id']; 34 | $wishListItemFeedback->disliked = $data['disliked']; 35 | 36 | $wishListItemFeedback->save(); 37 | 38 | return $wishListItemFeedback; 39 | } 40 | } -------------------------------------------------------------------------------- /resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Be right back. 5 | 6 | 7 | 8 | 39 | 40 | 41 |
    42 |
    43 |
    Be right back.
    44 |
    45 |
    46 | 47 | 48 | -------------------------------------------------------------------------------- /database/seeds/Access/PermissionTableSeeder.php: -------------------------------------------------------------------------------- 1 | disableForeignKeys(); 23 | $this->truncateMultiple([config('access.permissions_table'), config('access.permission_role_table')]); 24 | 25 | /** 26 | * Don't need to assign any permissions to administrator because the all flag is set to true 27 | * in RoleTableSeeder.php. 28 | */ 29 | 30 | /** 31 | * Misc Access Permissions. 32 | */ 33 | $permission_model = config('access.permission'); 34 | $viewBackend = new $permission_model(); 35 | $viewBackend->name = 'view-backend'; 36 | $viewBackend->display_name = 'View Backend'; 37 | $viewBackend->sort = 1; 38 | $viewBackend->created_at = Carbon::now(); 39 | $viewBackend->updated_at = Carbon::now(); 40 | $viewBackend->save(); 41 | 42 | $this->enableForeignKeys(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/Mfa/Domain/Event/Listener/WishlistWasCreatedListener.php: -------------------------------------------------------------------------------- 1 | wishlistRepository = $wishlistRepository; 23 | } 24 | 25 | /** 26 | * @param EventInterface|WishlistWasCreated $event 27 | */ 28 | public function handle(EventInterface $event) 29 | { 30 | $wishlist = $event->getWishlist(); 31 | $this->createReadModel($wishlist); 32 | } 33 | 34 | /** 35 | * @param Wishlist $wishlist 36 | */ 37 | private function createReadModel(Wishlist $wishlist) 38 | { 39 | $this->wishlistRepository->create([ 40 | 'wishlist_id' => $wishlist->getId()->getValue(), 41 | 'user_id' => $wishlist->getUserId()->getValue(), 42 | ]); 43 | } 44 | } -------------------------------------------------------------------------------- /resources/assets/sass/backend/skins/_skin-blue-light.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Skin: Blue 3 | * ---------- 4 | */ 5 | 6 | .skin-blue-light { 7 | //Navbar 8 | .main-header { 9 | .navbar { 10 | @include navbar-variant($light-blue, #fff); 11 | .sidebar-toggle { 12 | color: #fff; 13 | &:hover { 14 | background-color: darken($light-blue, 5%); 15 | } 16 | } 17 | @media (max-width: $screen-header-collapse) { 18 | .dropdown-menu { 19 | li { 20 | &.divider { 21 | background-color: rgba(255, 255, 255, 0.1); 22 | } 23 | a { 24 | color: #fff; 25 | &:hover { 26 | background: darken($light-blue, 5%); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | } 33 | //Logo 34 | .logo { 35 | @include logo-variant($light-blue); 36 | } 37 | 38 | li.user-header { 39 | background-color: $light-blue; 40 | } 41 | } 42 | 43 | //Content Header 44 | .content-header { 45 | background: transparent; 46 | } 47 | 48 | //Create the sidebar skin 49 | @include skin-light-sidebar($light-blue); 50 | .main-footer { 51 | border-top-color: $gray; 52 | } 53 | } 54 | 55 | .skin-blue.layout-top-nav .main-header > .logo { 56 | @include logo-variant($light-blue); 57 | } 58 | -------------------------------------------------------------------------------- /resources/views/vendor/log-viewer/_template/navigation.blade.php: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /resources/views/frontend/user/account/tabs/edit.blade.php: -------------------------------------------------------------------------------- 1 | {{ Form::model($logged_in_user, ['route' => 'frontend.user.profile.update', 'class' => 'form-horizontal', 'method' => 'PATCH']) }} 2 | 3 |
    4 | {{ Form::label('name', trans('validation.attributes.frontend.name'), ['class' => 'col-md-4 control-label']) }} 5 |
    6 | {{ Form::input('text', 'name', null, ['class' => 'form-control', 'placeholder' => trans('validation.attributes.frontend.name')]) }} 7 |
    8 |
    9 | 10 | @if ($logged_in_user->canChangeEmail()) 11 |
    12 | {{ Form::label('email', trans('validation.attributes.frontend.email'), ['class' => 'col-md-4 control-label']) }} 13 |
    14 |
    15 | {{ trans('strings.frontend.user.change_email_notice') }} 16 |
    17 | 18 | {{ Form::input('email', 'email', null, ['class' => 'form-control', 'placeholder' => trans('validation.attributes.frontend.email')]) }} 19 |
    20 |
    21 | @endif 22 | 23 |
    24 |
    25 | {{ Form::submit(trans('labels.general.buttons.update'), ['class' => 'btn btn-primary', 'id' => 'update-profile']) }} 26 |
    27 |
    28 | 29 | {{ Form::close() }} --------------------------------------------------------------------------------