├── .babelrc ├── .editorconfig ├── .env.example ├── .eslintrc.js ├── .gitattributes ├── .github └── dependabot.yml ├── .gitignore ├── .styleci.yml ├── .vscode ├── extensions.json ├── user-settings.json └── vuetified.code-workspace.json ├── LICENSE ├── README.md ├── app ├── Console │ ├── Commands │ │ ├── GenerateLaravelWebsocketKeys.php │ │ ├── GenerateLaravelWebsocketsAppID.php │ │ ├── GenerateLaravelWebsocketsAppKey.php │ │ └── GenerateLaravelWebsocketsSecretKey.php │ └── Kernel.php ├── Events │ └── .keep ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Controller.php │ │ ├── HomeController.php │ │ └── LoginController.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── HandleInertiaRequests.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php │ └── Rules │ │ ├── CheckSponsor.php │ │ ├── MustBeEmailOrUsername.php │ │ ├── MustBeValidUsername.php │ │ ├── MustMatchPassword.php │ │ └── ValidateZip.php ├── Models │ └── User.php └── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── debugbar.php ├── filesystems.php ├── hashing.php ├── ide-helper.php ├── inertia.php ├── logging.php ├── mail.php ├── queue.php ├── services.php ├── session.php ├── view.php ├── websockets.php └── ziggy.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 0000_00_00_000000_create_websockets_statistics_entries_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ └── 2019_08_19_000000_create_failed_jobs_table.php └── seeders │ └── DatabaseSeeder.php ├── package.json ├── phpcs.xml ├── phpunit.xml ├── public ├── .htaccess ├── css │ └── app.css ├── favicon.ico ├── fonts │ └── vendor │ │ ├── @fortawesome │ │ └── fontawesome-free │ │ │ ├── webfa-brands-400.eot │ │ │ ├── webfa-brands-400.svg │ │ │ ├── webfa-brands-400.ttf │ │ │ ├── webfa-brands-400.woff │ │ │ ├── webfa-brands-400.woff2 │ │ │ ├── webfa-regular-400.eot │ │ │ ├── webfa-regular-400.svg │ │ │ ├── webfa-regular-400.ttf │ │ │ ├── webfa-regular-400.woff │ │ │ ├── webfa-regular-400.woff2 │ │ │ ├── webfa-solid-900.eot │ │ │ ├── webfa-solid-900.svg │ │ │ ├── webfa-solid-900.ttf │ │ │ ├── webfa-solid-900.woff │ │ │ └── webfa-solid-900.woff2 │ │ ├── @mdi │ │ ├── materialdesignicons-webfont.eot │ │ ├── materialdesignicons-webfont.ttf │ │ ├── materialdesignicons-webfont.woff │ │ └── materialdesignicons-webfont.woff2 │ │ ├── font-awesome │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ │ ├── material-design-icons-icondist │ │ ├── MaterialIcons-Regular.eot │ │ ├── MaterialIcons-Regular.ttf │ │ ├── MaterialIcons-Regular.woff │ │ └── MaterialIcons-Regular.woff2 │ │ └── roboto-fontface │ │ └── roboto │ │ ├── Roboto-Black.woff │ │ ├── Roboto-Black.woff2 │ │ ├── Roboto-BlackItalic.woff │ │ ├── Roboto-BlackItalic.woff2 │ │ ├── Roboto-Bold.woff │ │ ├── Roboto-Bold.woff2 │ │ ├── Roboto-BoldItalic.woff │ │ ├── Roboto-BoldItalic.woff2 │ │ ├── Roboto-Light.woff │ │ ├── Roboto-Light.woff2 │ │ ├── Roboto-LightItalic.woff │ │ ├── Roboto-LightItalic.woff2 │ │ ├── Roboto-Medium.woff │ │ ├── Roboto-Medium.woff2 │ │ ├── Roboto-MediumItalic.woff │ │ ├── Roboto-MediumItalic.woff2 │ │ ├── Roboto-Regular.woff │ │ ├── Roboto-Regular.woff2 │ │ ├── Roboto-RegularItalic.woff │ │ ├── Roboto-RegularItalic.woff2 │ │ ├── Roboto-Thin.woff │ │ ├── Roboto-Thin.woff2 │ │ ├── Roboto-ThinItalic.woff │ │ └── Roboto-ThinItalic.woff2 ├── index.php ├── js │ ├── 0.js │ ├── 1.js │ ├── 2.js │ ├── 3.js │ └── app.js ├── mix-manifest.json ├── robots.txt └── web.config ├── resources ├── css │ └── app.css ├── js │ ├── Pages │ │ ├── Error.vue │ │ ├── Home.vue │ │ └── Login.vue │ ├── Shared │ │ ├── Confirm.vue │ │ ├── VHyperlink.vue │ │ └── Vlink.vue │ ├── app.js │ ├── layouts │ │ ├── MainLayout.vue │ │ └── ModalLayout.vue │ ├── mixins │ │ ├── acl.js │ │ ├── confirmation.js │ │ └── validation-error.js │ ├── partials │ │ ├── AppFooter.vue │ │ ├── AppNavBar.vue │ │ └── LeftSideBar.vue │ ├── plugins │ │ ├── bus.js │ │ ├── index.js │ │ ├── route.js │ │ ├── session.js │ │ ├── store.js │ │ ├── vee-validate.js │ │ └── websocket.js │ ├── vuetify.js │ └── ziggy.js ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php ├── sass │ ├── _vcloak.scss │ └── app.scss └── views │ ├── app.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── debugbar │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── HomePageTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php ├── webpack.mix.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "@babel/plugin-syntax-dynamic-import" 4 | ], 5 | "presets": [ 6 | "@babel/preset-env" 7 | ] 8 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=vuetified 2 | APP_ENV=local 3 | APP_KEY=base64:Kx70IJj7Im/qx92Qk61OMEUmM5/tAc1OQ9xeXtq/rXA= 4 | APP_DEBUG=true 5 | APP_URL=http://vuetified.test 6 | 7 | LOG_CHANNEL=stack 8 | LOG_LEVEL=debug 9 | 10 | DB_CONNECTION=mysql 11 | DB_HOST=127.0.0.1 12 | DB_PORT=3306 13 | DB_DATABASE=vuetified 14 | DB_USERNAME=homestead 15 | DB_PASSWORD=secret 16 | 17 | BROADCAST_DRIVER=log 18 | CACHE_DRIVER=file 19 | QUEUE_CONNECTION=sync 20 | SESSION_DRIVER=file 21 | SESSION_LIFETIME=120 22 | 23 | MEMCACHED_HOST=127.0.0.1 24 | 25 | REDIS_HOST=127.0.0.1 26 | REDIS_PASSWORD=null 27 | REDIS_PORT=6379 28 | 29 | MAIL_MAILER=smtp 30 | MAIL_HOST=mailhog 31 | MAIL_PORT=1025 32 | MAIL_USERNAME=null 33 | MAIL_PASSWORD=null 34 | MAIL_ENCRYPTION=null 35 | MAIL_FROM_ADDRESS=null 36 | MAIL_FROM_NAME="${APP_NAME}" 37 | 38 | AWS_ACCESS_KEY_ID= 39 | AWS_SECRET_ACCESS_KEY= 40 | AWS_DEFAULT_REGION=us-east-1 41 | AWS_BUCKET= 42 | 43 | PUSHER_APP_ID= 44 | PUSHER_APP_KEY= 45 | PUSHER_APP_SECRET= 46 | PUSHER_APP_CLUSTER=mt1 47 | 48 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 49 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 50 | 51 | 52 | LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT= 53 | LARAVEL_WEBSOCKETS_SSL_LOCAL_PK= 54 | 55 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: [ 3 | "eslint:recommended", 4 | "plugin:vue/recommended", 5 | "plugin:import/warnings" 6 | ], 7 | rules: { 8 | indent: ["error", 2], 9 | quotes: ["warn", "double"], 10 | semi: ["warn", "always"], 11 | "comma-dangle": ["warn", "always-multiline"], 12 | "vue/max-attributes-per-line": false, 13 | "vue/require-default-prop": false, 14 | "vue/singleline-html-element-content-newline": false, 15 | "vue/return-in-computed-property": [ 16 | "warning", 17 | { 18 | treatUndefinedAsUnspecified: true 19 | } 20 | ] 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: composer 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | open-pull-requests-limit: 10 8 | 9 | - package-ecosystem: "npm" 10 | directory: "/" 11 | schedule: 12 | interval: "daily" 13 | open-pull-requests-limit: 10 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | .env 7 | .env.backup 8 | .phpunit.result.cache 9 | docker-compose.override.yml 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | 15 | _ide_helper.php 16 | _ide_helper_models.php 17 | .phpstorm.meta.php -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | disabled: 4 | - no_unused_imports 5 | finder: 6 | not-name: 7 | - index.php 8 | - server.php 9 | js: 10 | finder: 11 | not-name: 12 | - webpack.mix.js 13 | css: true 14 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "formulahendry.auto-close-tag", 4 | "formulahendry.auto-rename-tag", 5 | "aaron-bond.better-comments", 6 | "calebporzio.better-phpunit", 7 | "alefragnani.bookmarks", 8 | "coenraads.bracket-pair-colorizer-2", 9 | "ikappas.composer", 10 | "pranaygp.vscode-css-peek", 11 | "editorconfig.editorconfig", 12 | "irongeek.vscode-env", 13 | "dbaeumer.vscode-eslint", 14 | "sleistner.vscode-fileutils", 15 | "mhutchie.git-graph", 16 | "donjayamanne.githistory", 17 | "eamodio.gitlens", 18 | "sirtori.indenticator", 19 | "ryannaddy.laravel-artisan", 20 | "onecentlin.laravel-blade", 21 | "amiralizadeh9480.laravel-extra-intellisense", 22 | "georgykurian.laravel-ide-helper", 23 | "khatabwedaa.laravel-snip", 24 | "nirab.laravel-snippet-pro", 25 | "ionutvmi.path-autocomplete", 26 | "mehedidracula.php-constructor", 27 | "neilbrayfield.php-docblocker", 28 | "phproberto.vscode-php-getters-setters", 29 | "bmewburn.vscode-intelephense-client", 30 | "ikappas.phpcs", 31 | "mehedidracula.php-namespace-resolver", 32 | "kokororin.vscode-phpfmt", 33 | "onecentlin.phpunit-snippets", 34 | "esbenp.prettier-vscode", 35 | "humao.rest-client", 36 | "devonray.snippet", 37 | "jock.svg", 38 | "simonsiefke.svg-preview", 39 | "bradlc.vscode-tailwindcss", 40 | "hbenl.vscode-test-explorer", 41 | "wayou.vscode-todo-highlight", 42 | "fabiospampinato.vscode-todo-plus", 43 | "octref.vetur", 44 | "kotfire.php-add-property", 45 | "recca0120.vscode-phpunit", 46 | "luxcium.pop-n-lock-theme-vscode", 47 | "codezombiech.gitignore", 48 | "ahinkle.laravel-model-snippets" 49 | ] 50 | } 51 | -------------------------------------------------------------------------------- /.vscode/user-settings.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "[blade]": { 4 | "editor.formatOnSave": false, 5 | "editor.tabSize": 4 6 | }, 7 | "[css]": { 8 | "editor.formatOnSave": false, 9 | "editor.tabSize": 2 10 | }, 11 | "[dart]": { 12 | "editor.formatOnSave": true, 13 | "editor.formatOnType": true, 14 | "editor.rulers": [ 15 | 80 16 | ], 17 | "editor.selectionHighlight": false, 18 | "editor.suggest.snippetsPreventQuickSuggestions": false, 19 | "editor.suggestSelection": "first", 20 | "editor.tabCompletion": "onlySnippets", 21 | "editor.wordBasedSuggestions": false 22 | }, 23 | "[html]": { 24 | "editor.formatOnSave": false, 25 | "editor.tabSize": 2 26 | }, 27 | "[javascript]": { 28 | "editor.formatOnSave": false, 29 | "editor.tabSize": 2, 30 | "editor.defaultFormatter": "esbenp.prettier-vscode" 31 | }, 32 | "[json]": { 33 | "editor.defaultFormatter": "esbenp.prettier-vscode", 34 | "editor.formatOnSave": false, 35 | "editor.tabSize": 2 36 | }, 37 | "[yaml]": { 38 | "editor.defaultFormatter": "redhat.vscode-yaml" 39 | }, 40 | "[jsonc]": { 41 | "editor.defaultFormatter": "vscode.json-language-features" 42 | }, 43 | "[php]": { 44 | "editor.defaultFormatter": "kokororin.vscode-phpfmt", 45 | "editor.formatOnSave": false, 46 | "editor.tabSize": 4 47 | }, 48 | "[scss]": { 49 | "editor.formatOnSave": false, 50 | "editor.tabSize": 2 51 | }, 52 | "[sass]": { 53 | "editor.formatOnSave": false, 54 | "editor.tabSize": 2 55 | }, 56 | "[vue]": { 57 | "editor.formatOnSave": false, 58 | "editor.tabSize": 2, 59 | "editor.quickSuggestions": { 60 | "strings": true 61 | }, 62 | "editor.defaultFormatter": "octref.vetur" 63 | }, 64 | "auto-rename-tag.activationOnLanguage": [ 65 | "html", 66 | "xml", 67 | "php", 68 | "javascript", 69 | "blade", 70 | "vue" 71 | ], 72 | "blade.format.enable": true, 73 | "composer.executablePath": "C:\\ProgramData\\ComposerSetup\\bin\\composer.bat", 74 | "css.validate": false, 75 | "dart.openDevTools": "flutter", 76 | "editor.suggestSelection": "first", 77 | "dart.debugExternalLibraries": false, 78 | "dart.debugSdkLibraries": false, 79 | "dart.previewLsp": true, 80 | "editor.lineNumbers": "relative", 81 | "editor.cursorBlinking": "solid", 82 | "editor.cursorSmoothCaretAnimation": true, 83 | "editor.cursorStyle": "underline", 84 | "editor.fontFamily": "operator mono", 85 | "editor.fontLigatures": true, 86 | "editor.tabCompletion": "on", 87 | "editor.scrollBeyondLastLine": false, 88 | "editor.minimap.enabled": false, 89 | "editor.codeActionsOnSave": { 90 | "source.fixAll": true, 91 | "source.fixAll.eslint": true 92 | }, 93 | "emmet.includeLanguages": { 94 | "blade": "html", 95 | "vue-html": "html" 96 | }, 97 | "emmet.triggerExpansionOnTab": true, 98 | "eslint.run": "onSave", 99 | "eslint.runtime": "C:\\Users\\masterpowers\\AppData\\Local\\Temp\\fnm_multishell_11136_1611955286198\\eslint.ps1", 100 | "eslint.options": { 101 | "extensions": [ 102 | ".html", 103 | ".js", 104 | ".vue", 105 | ".jsx" 106 | ] 107 | }, 108 | "eslint.validate": [ 109 | "html", 110 | "vue", 111 | "javascript", 112 | "javascriptreact" 113 | ], 114 | "files.autoSave": "off", 115 | "files.eol": "\n", 116 | "intelephense.diagnostics.undefinedProperties": false, 117 | "intelephense.diagnostics.undefinedMethods": false, 118 | "javascript.validate.enable": false, 119 | "namespaceResolver.sortOnSave": true, 120 | "namespaceResolver.showMessageOnStatusBar": false, 121 | "phpcs.standard": "./phpcs.xml", 122 | "phpcs.executablePath": "./vendor/bin/phpcs", 123 | "phpcs.ignorePatterns": [ 124 | "*/storage/", 125 | "*/vendor/*", 126 | "*/node_modules/*", 127 | "*/database/*", 128 | "*/resources/*" 129 | ], 130 | "phpfmt.passes": [ 131 | "PSR2KeywordsLowerCase", 132 | "PSR2LnAfterNamespace", 133 | "PSR2CurlyOpenNextLine", 134 | "PSR2ModifierVisibilityStaticOrder", 135 | "PSR2SingleEmptyLineAndStripClosingTag", 136 | "ReindentSwitchBlocks", 137 | "AlignConstVisibilityEquals", 138 | "AlignDoubleArrow", 139 | "AlignEquals", 140 | "AlignGroupDoubleArrow", 141 | "AutoSemicolon", 142 | "ClassToStatic", 143 | "DoubleToSingleQuote", 144 | "SortUseNameSpace", 145 | "SpaceBetweenMethods", 146 | "ShortArray", 147 | "RestoreComments", 148 | "OrderMethodAndVisibility", 149 | "ReindentAndAlignObjOps", 150 | "ReindentSwitchBlocks", 151 | ], 152 | "phpfmt.psr2": false, 153 | "phpfmt.exclude": [ 154 | "ReindentComments", 155 | "StripNewlineWithinClassBody" 156 | ], 157 | "phpfmt.php_bin": "C:\\tools\\php80\\php.exe", 158 | "phpfmt.smart_linebreak_after_curly": true, 159 | "phpfmt.indent_with_space": 4, 160 | "phpfmt.detect_indent": false, 161 | "phpfmt.yoda": true, 162 | "terminal.integrated.splitCwd": "workspaceRoot", 163 | "scss.validate": false, 164 | "terminal.integrated.cursorWidth": 2, 165 | "terminal.external.windowsExec": "C:\\Program Files (x86)\\PowerShell\\7\\pwsh.exe", 166 | "terminal.integrated.shell.windows": "C:\\Program Files (x86)\\PowerShell\\7\\pwsh.exe", 167 | "terminal.integrated.fontFamily": "Hack Nerd Font Mono", 168 | "vscode-neovim.neovimExecutablePaths.win32": "C:\\Users\\masterpowers\\scoop\\apps\\neovim-nightly\\current\\bin\\nvim.exe", 169 | "vscode-neovim.neovimInitVimPaths.win32": "C:\\Users\\masterpowers\\AppData\\Local\\nvim\\init.vim", 170 | "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", 171 | "workbench.colorTheme": "Pop N' Lock Theme by Luxcium ✨ Alexis's Black ⛷", 172 | "workbench.editor.enablePreview": false, 173 | "intelephense.completion.fullyQualifyGlobalConstantsAndFunctions": true, 174 | } 175 | -------------------------------------------------------------------------------- /.vscode/vuetified.code-workspace.json: -------------------------------------------------------------------------------- 1 | { 2 | // rename this file, remove .json and use vscode to launch it 3 | "folders": [ 4 | { 5 | "path": "..\\www\\projectx", 6 | "name": "Backend" 7 | }, 8 | { 9 | "path": "..\\App\\thriftshop", 10 | "name": "Mobile App" 11 | } 12 | ], 13 | "extensions": { 14 | "recommendations": [ 15 | "pkief.material-icon-theme", 16 | "alefragnani.bookmarks", 17 | "usernamehw.errorlens", 18 | "aaron-bond.better-comments", 19 | "bungcip.better-toml", 20 | "coenraads.bracket-pair-colorizer-2", 21 | "irongeek.vscode-env", 22 | "sleistner.vscode-fileutils", 23 | "mhutchie.git-graph", 24 | "donjayamanne.githistory", 25 | "codezombiech.gitignore", 26 | "eamodio.gitlens", 27 | "sirtori.indenticator", 28 | "pascalsenn.keyboard-quickfix", 29 | "pkief.material-icon-theme", 30 | "asvetliakov.vscode-neovim", 31 | "ionutvmi.path-autocomplete", 32 | "luxcium.pop-n-lock-theme-vscode", 33 | "ms-vscode.powershell", 34 | "esbenp.prettier-vscode", 35 | "plibither8.remove-comments", 36 | "humao.rest-client", 37 | "devonray.snippet", 38 | "jock.svg", 39 | "simonsiefke.svg-preview", 40 | "hbenl.vscode-test-explorer", 41 | "wayou.vscode-todo-highlight", 42 | "fabiospampinato.vscode-todo-plus", 43 | "xadillax.viml", 44 | "visualstudioexptteam.vscodeintellicode", 45 | "redhat.vscode-yaml", 46 | ] 47 | }, 48 | } 49 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Uriah Galang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Vuetified 2 | > Updated for Laravel 8.0 , Working Vuetify Loader Set with Inertia JS 3 | 4 | ## Stacks 5 | - laravel echo (broadcasting realtime events) 6 | - inertiajs (state) 7 | - vuejs 2.6 + vuetify 2.4 (UI) 8 | - vform & vee-validate v2 (form handling) 9 | - ziggy (routing on UI) 10 | 11 | ## Requirements 12 | - php 7.4 / 8.0 13 | - Node >= 12.0 + 14 | - fnm (optional for switching node versions) 15 | - laravel valet (optional) 16 | 17 | ## Installation 18 | 19 | 1. git clone https://github.com/codeitlikemiley/vuetified YOURPROJECTNAME 20 | 2. cd YOURPROJECTNAME 21 | 3. composer install 22 | 4. yarn 23 | 5. cp .env.example .env 24 | 6. php artisan websockets:generate 25 | 7. php artisan migrate:fresh --seed 26 | 27 | ## [Using Websocket](https://beyondco.de/docs/laravel-websockets/getting-started/introduction) to [broadcast Events](https://laravel.com/docs/8.x/broadcasting) 28 | - php artisan websocket:serve 29 | 30 | ## Development 31 | - npm run watch 32 | 33 | ## Production 34 | - php artisan ziggy:generate 35 | - uncomment routes.js on plugins 36 | 37 | ## Issues 38 | If you have seen any bugs please report it by making an [issue.](https://github.com/codeitlikemiley/vuetified/issues) 39 | 40 | ## Support 41 | If you need support you can contact our [Facebook Page](https://www.facebook.com/goldcodersdev) 42 | 43 | ## Pull Request 44 | If you want to add components to be part of vuetified please make a [pull request.](https://github.com/codeitlikemiley/vuetified/pulls) 45 | -------------------------------------------------------------------------------- /app/Console/Commands/GenerateLaravelWebsocketKeys.php: -------------------------------------------------------------------------------- 1 | call('websockets:id'); 41 | $this->call('websockets:key'); 42 | $this->call('websockets:secret'); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/Console/Commands/GenerateLaravelWebsocketsAppID.php: -------------------------------------------------------------------------------- 1 | generateRandomKey(); 47 | 48 | if ($this->option('show')) { 49 | return $this->line('' . $key . ''); 50 | } 51 | if (!$this->setKeyInEnvironmentFile($key)) { 52 | return; 53 | } 54 | 55 | $this->laravel['config']['websockets.apps.0.id'] = $key; 56 | 57 | $this->info("Laravel Websocket App ID: [$key] set successfully."); 58 | } 59 | 60 | protected function generateRandomKey() 61 | { 62 | return 'base64:' . base64_encode( 63 | Encrypter::generateKey($this->laravel['config']['app.cipher']) 64 | ); 65 | } 66 | 67 | /** 68 | * Get a regex pattern that will match env APP_KEY with any random key. 69 | * 70 | * @return string 71 | */ 72 | protected function keyReplacementPattern() 73 | { 74 | $escaped = preg_quote('=' . $this->laravel['config']['websockets.apps.0.id'], '/'); 75 | 76 | return "/^PUSHER_APP_ID{$escaped}/m"; 77 | } 78 | 79 | /** 80 | * @param $key 81 | */ 82 | protected function setKeyInEnvironmentFile($key) 83 | { 84 | $currentKey = $this->laravel['config']['websockets.apps.0.id']; 85 | 86 | if (strlen($currentKey) !== 0 && (!$this->confirmToProceed())) { 87 | return false; 88 | } 89 | 90 | $this->writeNewEnvironmentFileWith($key); 91 | 92 | return true; 93 | } 94 | 95 | /** 96 | * Write a new environment file with the given key. 97 | * 98 | * @param string $key 99 | * @return void 100 | */ 101 | protected function writeNewEnvironmentFileWith($key) 102 | { 103 | file_put_contents($this->laravel->environmentFilePath(), preg_replace( 104 | $this->keyReplacementPattern(), 105 | 'PUSHER_APP_ID=' . $key, 106 | file_get_contents($this->laravel->environmentFilePath()) 107 | )); 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /app/Console/Commands/GenerateLaravelWebsocketsAppKey.php: -------------------------------------------------------------------------------- 1 | generateRandomKey(); 47 | 48 | if ($this->option('show')) { 49 | return $this->line('' . $key . ''); 50 | } 51 | 52 | if (!$this->setKeyInEnvironmentFile($key)) { 53 | return; 54 | } 55 | 56 | $this->laravel['config']['websockets.apps.0.key'] = $key; 57 | 58 | $this->info("Laravel Websocket App Key: [$key] set successfully."); 59 | } 60 | 61 | protected function generateRandomKey() 62 | { 63 | return 'base64:' . base64_encode( 64 | Encrypter::generateKey($this->laravel['config']['app.cipher']) 65 | ); 66 | } 67 | 68 | /** 69 | * Get a regex pattern that will match env APP_KEY with any random key. 70 | * 71 | * @return string 72 | */ 73 | protected function keyReplacementPattern() 74 | { 75 | $escaped = preg_quote('=' . $this->laravel['config']['websockets.apps.0.key'], '/'); 76 | 77 | return "/^PUSHER_APP_KEY{$escaped}/m"; 78 | } 79 | 80 | /** 81 | * @param $key 82 | */ 83 | protected function setKeyInEnvironmentFile($key) 84 | { 85 | $currentKey = $this->laravel['config']['websockets.apps.0.key']; 86 | 87 | if (strlen($currentKey) !== 0 && (!$this->confirmToProceed())) { 88 | return false; 89 | } 90 | 91 | $this->writeNewEnvironmentFileWith($key); 92 | 93 | return true; 94 | } 95 | 96 | /** 97 | * Write a new environment file with the given key. 98 | * 99 | * @param string $key 100 | * @return void 101 | */ 102 | protected function writeNewEnvironmentFileWith($key) 103 | { 104 | file_put_contents($this->laravel->environmentFilePath(), preg_replace( 105 | $this->keyReplacementPattern(), 106 | 'PUSHER_APP_KEY=' . $key, 107 | file_get_contents($this->laravel->environmentFilePath()) 108 | )); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /app/Console/Commands/GenerateLaravelWebsocketsSecretKey.php: -------------------------------------------------------------------------------- 1 | generateRandomKey(); 47 | 48 | if ($this->option('show')) { 49 | return $this->line('' . $key . ''); 50 | } 51 | 52 | if (!$this->setKeyInEnvironmentFile($key)) { 53 | return; 54 | } 55 | 56 | $this->laravel['config']['websockets.apps.0.secret'] = $key; 57 | 58 | $this->info("Laravel Websocket App Secret: [$key] set successfully."); 59 | } 60 | 61 | protected function generateRandomKey() 62 | { 63 | return 'base64:' . base64_encode( 64 | Encrypter::generateKey($this->laravel['config']['app.cipher']) 65 | ); 66 | } 67 | 68 | /** 69 | * Get a regex pattern that will match env APP_KEY with any random key. 70 | * 71 | * @return string 72 | */ 73 | protected function keyReplacementPattern() 74 | { 75 | $escaped = preg_quote('=' . $this->laravel['config']['websockets.apps.0.secret'], '/'); 76 | 77 | return "/^PUSHER_APP_SECRET{$escaped}/m"; 78 | } 79 | 80 | /** 81 | * @param $key 82 | */ 83 | protected function setKeyInEnvironmentFile($key) 84 | { 85 | $currentKey = $this->laravel['config']['websockets.apps.0.secret']; 86 | 87 | if (strlen($currentKey) !== 0 && (!$this->confirmToProceed())) { 88 | return false; 89 | } 90 | 91 | $this->writeNewEnvironmentFileWith($key); 92 | 93 | return true; 94 | } 95 | 96 | /** 97 | * Write a new environment file with the given key. 98 | * 99 | * @param string $key 100 | * @return void 101 | */ 102 | protected function writeNewEnvironmentFileWith($key) 103 | { 104 | file_put_contents($this->laravel->environmentFilePath(), preg_replace( 105 | $this->keyReplacementPattern(), 106 | 'PUSHER_APP_SECRET=' . $key, 107 | file_get_contents($this->laravel->environmentFilePath()) 108 | )); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 28 | } 29 | 30 | /** 31 | * Register the commands for the application. 32 | * 33 | * @return void 34 | */ 35 | protected function commands() 36 | { 37 | $this->load(__DIR__.'/Commands'); 38 | 39 | require base_path('routes/console.php'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Events/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/app/Events/.keep -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | reportable(function (Throwable $e) { 38 | // 39 | }); 40 | } 41 | 42 | /** 43 | * Prepare exception for rendering. 44 | * 45 | * @param \Throwable $e 46 | * @return \Throwable 47 | */ 48 | public function render($request, Throwable $e) 49 | { 50 | $response = parent::render($request, $e); 51 | 52 | if (!app()->environment('local') && in_array($response->status(), [500, 503, 404, 403])) { 53 | return Inertia::render('Error', ['status' => $response->status()]) 54 | ->toResponse($request) 55 | ->setStatusCode($response->status()); 56 | } else if ($response->status() === 419) { 57 | return back()->with([ 58 | 'message' => 'The page expired, please try again.', 59 | ]); 60 | } 61 | 62 | return $response; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | url('/'), 13 | ]); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/Http/Controllers/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except(['logout', 'showLogoutForm']); 40 | } 41 | 42 | public function showLoginForm() 43 | { 44 | return Inertia::render('Login'); 45 | } 46 | 47 | public function showLogoutForm() 48 | { 49 | return Inertia::render('Logout'); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 38 | \App\Http\Middleware\VerifyCsrfToken::class, 39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 40 | \App\Http\Middleware\HandleInertiaRequests::class, 41 | ], 42 | 43 | 'api' => [ 44 | 'throttle:api', 45 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 46 | ], 47 | ]; 48 | 49 | /** 50 | * The application's route middleware. 51 | * 52 | * These middleware may be assigned to groups or used individually. 53 | * 54 | * @var array 55 | */ 56 | protected $routeMiddleware = [ 57 | 'auth' => \App\Http\Middleware\Authenticate::class, 58 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 64 | 'remember' => \Reinink\RememberQueryStrings::class, 65 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 66 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 67 | ]; 68 | } 69 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | function () use ($request) { 41 | return [ 42 | 'name' => config('app.name'), 43 | 'env' => env('APP_ENV') 44 | ]; 45 | }, 46 | 'auth' => function () use ($request) { 47 | $user = $request->user(); 48 | $impersonating = $request->session()->get('impersonated_by'); 49 | // $routeName = $request->route()->getName(); 50 | 51 | return [ 52 | 'isLoggedIn' => $user ? true : false, 53 | 'isImpersonating' => $impersonating, 54 | 'user' => $user ? [ 55 | 'id' => $user->id, 56 | 'email' => $user->email, 57 | 'name' => $user->name, 58 | ] : null, 59 | ]; 60 | }, 61 | 'flash' => function () use ($request) { 62 | return [ 63 | 'success' => $request->session()->get('success'), 64 | 'warning' => $request->session()->get('warning'), 65 | 'info' => $request->session()->get('info'), 66 | 'error' => $request->session()->get('error'), 67 | ]; 68 | }, 69 | 'errors' => function () use ($request) { 70 | return $request->session()->get('errors') ? $request->session()->get('errors')->getBag('default')->getMessages() : (object) []; 71 | }, 72 | ]); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | check()) { 26 | return redirect(RouteServiceProvider::HOME); 27 | } 28 | } 29 | 30 | return $next($request); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | findForPassport($value); 31 | 32 | return null !== $user; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Rules/MustBeValidUsername.php: -------------------------------------------------------------------------------- 1 | findForPassport($value); 31 | 32 | return null !== $user; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Rules/MustMatchPassword.php: -------------------------------------------------------------------------------- 1 | hash = $hash; 23 | } 24 | 25 | /** 26 | * Get the validation error message. 27 | * 28 | * @return string 29 | */ 30 | public function message() 31 | { 32 | return 'The password doesn\'t match our record.'; 33 | } 34 | 35 | /** 36 | * Determine if the validation rule passes. 37 | * 38 | * @param string $attribute 39 | * @param mixed $value 40 | * @return bool 41 | */ 42 | public function passes($attribute, $value) 43 | { 44 | return Hash::check($value, $this->hash); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/Http/Rules/ValidateZip.php: -------------------------------------------------------------------------------- 1 | 'datetime', 42 | ]; 43 | 44 | public function findForPassport($identifier) 45 | { 46 | return $this->orWhere('email', $identifier)->orWhere('username', $identifier)->first(); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | registerLengthAwarePaginator(); 29 | } 30 | 31 | /** 32 | * @return mixed 33 | */ 34 | protected function registerLengthAwarePaginator() 35 | { 36 | $this->app->bind(LengthAwarePaginator::class, function ($app, $values) { 37 | return new class(...array_values($values)) extends LengthAwarePaginator 38 | { 39 | /** 40 | * @param array $attributes 41 | * @return mixed 42 | */ 43 | public function only(...$attributes) 44 | { 45 | return $this->transform(function ($item) use ($attributes) { 46 | return $item->only($attributes); 47 | }); 48 | } 49 | 50 | /** 51 | * @param Closure $callback 52 | * @return mixed 53 | */ 54 | public function transform($callback) 55 | { 56 | $this->items->transform($callback); 57 | 58 | return $this; 59 | } 60 | 61 | public function toArray() 62 | { 63 | $total_pages = ceil($this->total() / $this->perPage()); 64 | $show_pagination = false; 65 | 66 | if ($total_pages > 1) { 67 | $show_pagination = true; 68 | } 69 | 70 | return [ 71 | 'data' => $this->items->toArray(), 72 | 'meta' => [ 73 | 'page' => $this->currentPage(), 74 | 'total_pages' => $total_pages, 75 | 'per_page' => $this->perPage(), 76 | 'visible' => $show_pagination, 77 | ], 78 | ]; 79 | } 80 | }; 81 | }); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 41 | 42 | $this->routes(function () { 43 | Route::prefix('api') 44 | ->middleware('api') 45 | ->namespace($this->namespace) 46 | ->group(base_path('routes/api.php')); 47 | 48 | Route::middleware('web') 49 | ->namespace($this->namespace) 50 | ->group(base_path('routes/web.php')); 51 | }); 52 | } 53 | 54 | /** 55 | * Configure the rate limiters for the application. 56 | * 57 | * @return void 58 | */ 59 | protected function configureRateLimiting() 60 | { 61 | RateLimiter::for('api', function (Request $request) { 62 | return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); 63 | }); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": [ 6 | "framework", 7 | "laravel" 8 | ], 9 | "license": "MIT", 10 | "require": { 11 | "php": "^8.0", 12 | "beyondcode/laravel-websockets": "^2.0", 13 | "claudiodekker/inertia-laravel-testing": "^2.2", 14 | "fideloper/proxy": "^4.4", 15 | "fruitcake/laravel-cors": "^2.0", 16 | "guzzlehttp/guzzle": "^7.0.1", 17 | "inertiajs/inertia-laravel": "^0.3.6", 18 | "lab404/laravel-impersonate": "^1.7", 19 | "laravel/framework": "^8.12", 20 | "laravel/tinker": "^2.5", 21 | "laravel/ui": "^3.2", 22 | "pusher/pusher-php-server": "^4.1", 23 | "reinink/advanced-eloquent": "^0.2.0", 24 | "reinink/remember-query-strings": "^0.1.0", 25 | "tightenco/ziggy": "^1.0" 26 | }, 27 | "require-dev": { 28 | "barryvdh/laravel-debugbar": "^3.5", 29 | "barryvdh/laravel-ide-helper": "^2.9", 30 | "facade/ignition": "^2.5", 31 | "fakerphp/faker": "^1.9.1", 32 | "mockery/mockery": "^1.4.2", 33 | "nunomaduro/collision": "^5.0", 34 | "phpunit/phpunit": "^9.3.3", 35 | "squizlabs/php_codesniffer": "*" 36 | }, 37 | "config": { 38 | "optimize-autoloader": true, 39 | "preferred-install": "dist", 40 | "sort-packages": true 41 | }, 42 | "extra": { 43 | "laravel": { 44 | "dont-discover": [] 45 | } 46 | }, 47 | "autoload": { 48 | "psr-4": { 49 | "App\\": "app/", 50 | "Database\\Factories\\": "database/factories/", 51 | "Database\\Seeders\\": "database/seeders/" 52 | } 53 | }, 54 | "autoload-dev": { 55 | "psr-4": { 56 | "Tests\\": "tests/" 57 | } 58 | }, 59 | "minimum-stability": "dev", 60 | "prefer-stable": true, 61 | "scripts": { 62 | "post-update-cmd": [ 63 | "Illuminate\\Foundation\\ComposerScripts::postUpdate", 64 | "@php artisan ide-helper:generate", 65 | "@php artisan ide-helper:meta", 66 | "@php artisan ide-helper:models --nowrite" 67 | ], 68 | "post-install-cmd": [ 69 | "@php artisan ide-helper:generate", 70 | "@php artisan ide-helper:meta", 71 | "@php artisan ide-helper:models --nowrite" 72 | ], 73 | "post-autoload-dump": [ 74 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 75 | "@php artisan package:discover --ansi" 76 | ], 77 | "post-root-package-install": [ 78 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 79 | ], 80 | "post-create-project-cmd": [ 81 | "@php artisan key:generate --ansi" 82 | ] 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'Laravel'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Application Environment 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This value determines the "environment" your application is currently 24 | | running in. This may determine how you prefer to configure various 25 | | services the application utilizes. Set this in your ".env" file. 26 | | 27 | */ 28 | 29 | 'env' => env('APP_ENV', 'production'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Application Debug Mode 34 | |-------------------------------------------------------------------------- 35 | | 36 | | When your application is in debug mode, detailed error messages with 37 | | stack traces will be shown on every error that occurs within your 38 | | application. If disabled, a simple generic error page is shown. 39 | | 40 | */ 41 | 42 | 'debug' => (bool) env('APP_DEBUG', false), 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Application URL 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This URL is used by the console to properly generate URLs when using 50 | | the Artisan command line tool. You should set this to the root of 51 | | your application so that it is used when running Artisan tasks. 52 | | 53 | */ 54 | 55 | 'url' => env('APP_URL', 'http://localhost'), 56 | 57 | 'asset_url' => env('ASSET_URL', null), 58 | 59 | /* 60 | |-------------------------------------------------------------------------- 61 | | Application Timezone 62 | |-------------------------------------------------------------------------- 63 | | 64 | | Here you may specify the default timezone for your application, which 65 | | will be used by the PHP date and date-time functions. We have gone 66 | | ahead and set this to a sensible default for you out of the box. 67 | | 68 | */ 69 | 70 | 'timezone' => 'UTC', 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Application Locale Configuration 75 | |-------------------------------------------------------------------------- 76 | | 77 | | The application locale determines the default locale that will be used 78 | | by the translation service provider. You are free to set this value 79 | | to any of the locales which will be supported by the application. 80 | | 81 | */ 82 | 83 | 'locale' => 'en', 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | Application Fallback Locale 88 | |-------------------------------------------------------------------------- 89 | | 90 | | The fallback locale determines the locale to use when the current one 91 | | is not available. You may change the value to correspond to any of 92 | | the language folders that are provided through your application. 93 | | 94 | */ 95 | 96 | 'fallback_locale' => 'en', 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Faker Locale 101 | |-------------------------------------------------------------------------- 102 | | 103 | | This locale will be used by the Faker PHP library when generating fake 104 | | data for your database seeds. For example, this will be used to get 105 | | localized telephone numbers, street address information and more. 106 | | 107 | */ 108 | 109 | 'faker_locale' => 'en_US', 110 | 111 | /* 112 | |-------------------------------------------------------------------------- 113 | | Encryption Key 114 | |-------------------------------------------------------------------------- 115 | | 116 | | This key is used by the Illuminate encrypter service and should be set 117 | | to a random, 32 character string, otherwise these encrypted strings 118 | | will not be safe. Please do this before deploying an application! 119 | | 120 | */ 121 | 122 | 'key' => env('APP_KEY'), 123 | 124 | 'cipher' => 'AES-256-CBC', 125 | 126 | /* 127 | |-------------------------------------------------------------------------- 128 | | Autoloaded Service Providers 129 | |-------------------------------------------------------------------------- 130 | | 131 | | The service providers listed here will be automatically loaded on the 132 | | request to your application. Feel free to add your own services to 133 | | this array to grant expanded functionality to your applications. 134 | | 135 | */ 136 | 137 | 'providers' => [ 138 | 139 | /* 140 | * Laravel Framework Service Providers... 141 | */ 142 | Illuminate\Auth\AuthServiceProvider::class, 143 | Illuminate\Broadcasting\BroadcastServiceProvider::class, 144 | Illuminate\Bus\BusServiceProvider::class, 145 | Illuminate\Cache\CacheServiceProvider::class, 146 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, 147 | Illuminate\Cookie\CookieServiceProvider::class, 148 | Illuminate\Database\DatabaseServiceProvider::class, 149 | Illuminate\Encryption\EncryptionServiceProvider::class, 150 | Illuminate\Filesystem\FilesystemServiceProvider::class, 151 | Illuminate\Foundation\Providers\FoundationServiceProvider::class, 152 | Illuminate\Hashing\HashServiceProvider::class, 153 | Illuminate\Mail\MailServiceProvider::class, 154 | Illuminate\Notifications\NotificationServiceProvider::class, 155 | Illuminate\Pagination\PaginationServiceProvider::class, 156 | Illuminate\Pipeline\PipelineServiceProvider::class, 157 | Illuminate\Queue\QueueServiceProvider::class, 158 | Illuminate\Redis\RedisServiceProvider::class, 159 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, 160 | Illuminate\Session\SessionServiceProvider::class, 161 | Illuminate\Translation\TranslationServiceProvider::class, 162 | Illuminate\Validation\ValidationServiceProvider::class, 163 | Illuminate\View\ViewServiceProvider::class, 164 | 165 | /* 166 | * Package Service Providers... 167 | */ 168 | 169 | /* 170 | * Application Service Providers... 171 | */ 172 | App\Providers\AppServiceProvider::class, 173 | App\Providers\AuthServiceProvider::class, 174 | App\Providers\BroadcastServiceProvider::class, 175 | App\Providers\EventServiceProvider::class, 176 | App\Providers\RouteServiceProvider::class, 177 | 178 | ], 179 | 180 | /* 181 | |-------------------------------------------------------------------------- 182 | | Class Aliases 183 | |-------------------------------------------------------------------------- 184 | | 185 | | This array of class aliases will be registered when this application 186 | | is started. However, feel free to register as many as you wish as 187 | | the aliases are "lazy" loaded so they don't hinder performance. 188 | | 189 | */ 190 | 191 | 'aliases' => [ 192 | 193 | 'App' => Illuminate\Support\Facades\App::class, 194 | 'Arr' => Illuminate\Support\Arr::class, 195 | 'Artisan' => Illuminate\Support\Facades\Artisan::class, 196 | 'Auth' => Illuminate\Support\Facades\Auth::class, 197 | 'Blade' => Illuminate\Support\Facades\Blade::class, 198 | 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 199 | 'Bus' => Illuminate\Support\Facades\Bus::class, 200 | 'Cache' => Illuminate\Support\Facades\Cache::class, 201 | 'Config' => Illuminate\Support\Facades\Config::class, 202 | 'Cookie' => Illuminate\Support\Facades\Cookie::class, 203 | 'Crypt' => Illuminate\Support\Facades\Crypt::class, 204 | 'DB' => Illuminate\Support\Facades\DB::class, 205 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 206 | 'Event' => Illuminate\Support\Facades\Event::class, 207 | 'File' => Illuminate\Support\Facades\File::class, 208 | 'Gate' => Illuminate\Support\Facades\Gate::class, 209 | 'Hash' => Illuminate\Support\Facades\Hash::class, 210 | 'Http' => Illuminate\Support\Facades\Http::class, 211 | 'Lang' => Illuminate\Support\Facades\Lang::class, 212 | 'Log' => Illuminate\Support\Facades\Log::class, 213 | 'Mail' => Illuminate\Support\Facades\Mail::class, 214 | 'Notification' => Illuminate\Support\Facades\Notification::class, 215 | 'Password' => Illuminate\Support\Facades\Password::class, 216 | 'Queue' => Illuminate\Support\Facades\Queue::class, 217 | 'Redirect' => Illuminate\Support\Facades\Redirect::class, 218 | // 'Redis' => Illuminate\Support\Facades\Redis::class, 219 | 'Request' => Illuminate\Support\Facades\Request::class, 220 | 'Response' => Illuminate\Support\Facades\Response::class, 221 | 'Route' => Illuminate\Support\Facades\Route::class, 222 | 'Schema' => Illuminate\Support\Facades\Schema::class, 223 | 'Session' => Illuminate\Support\Facades\Session::class, 224 | 'Storage' => Illuminate\Support\Facades\Storage::class, 225 | 'Str' => Illuminate\Support\Str::class, 226 | 'URL' => Illuminate\Support\Facades\URL::class, 227 | 'Validator' => Illuminate\Support\Facades\Validator::class, 228 | 'View' => Illuminate\Support\Facades\View::class, 229 | 230 | ], 231 | 232 | ]; 233 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | 'hash' => false, 48 | ], 49 | ], 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | User Providers 54 | |-------------------------------------------------------------------------- 55 | | 56 | | All authentication drivers have a user provider. This defines how the 57 | | users are actually retrieved out of your database or other storage 58 | | mechanisms used by this application to persist your user's data. 59 | | 60 | | If you have multiple user tables or models you may configure multiple 61 | | sources which represent each model / table. These sources may then 62 | | be assigned to any extra authentication guards you have defined. 63 | | 64 | | Supported: "database", "eloquent" 65 | | 66 | */ 67 | 68 | 'providers' => [ 69 | 'users' => [ 70 | 'driver' => 'eloquent', 71 | 'model' => App\Models\User::class, 72 | ], 73 | 74 | // 'users' => [ 75 | // 'driver' => 'database', 76 | // 'table' => 'users', 77 | // ], 78 | ], 79 | 80 | /* 81 | |-------------------------------------------------------------------------- 82 | | Resetting Passwords 83 | |-------------------------------------------------------------------------- 84 | | 85 | | You may specify multiple password reset configurations if you have more 86 | | than one user table or model in the application and you want to have 87 | | separate password reset settings based on the specific user types. 88 | | 89 | | The expire time is the number of minutes that the reset token should be 90 | | considered valid. This security feature keeps tokens short-lived so 91 | | they have less time to be guessed. You may change this as needed. 92 | | 93 | */ 94 | 95 | 'passwords' => [ 96 | 'users' => [ 97 | 'provider' => 'users', 98 | 'table' => 'password_resets', 99 | 'expire' => 60, 100 | 'throttle' => 60, 101 | ], 102 | ], 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Password Confirmation Timeout 107 | |-------------------------------------------------------------------------- 108 | | 109 | | Here you may define the amount of seconds before a password confirmation 110 | | times out and the user is prompted to re-enter their password via the 111 | | confirmation screen. By default, the timeout lasts for three hours. 112 | | 113 | */ 114 | 115 | 'password_timeout' => 10800, 116 | 117 | ]; 118 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'ably' => [ 45 | 'driver' => 'ably', 46 | 'key' => env('ABLY_KEY'), 47 | ], 48 | 49 | 'redis' => [ 50 | 'driver' => 'redis', 51 | 'connection' => 'default', 52 | ], 53 | 54 | 'log' => [ 55 | 'driver' => 'log', 56 | ], 57 | 58 | 'null' => [ 59 | 'driver' => 'null', 60 | ], 61 | 62 | ], 63 | 64 | ]; 65 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | | Supported drivers: "apc", "array", "database", "file", 30 | | "memcached", "redis", "dynamodb", "null" 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | 'lock_connection' => null, 50 | ], 51 | 52 | 'file' => [ 53 | 'driver' => 'file', 54 | 'path' => storage_path('framework/cache/data'), 55 | ], 56 | 57 | 'memcached' => [ 58 | 'driver' => 'memcached', 59 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 60 | 'sasl' => [ 61 | env('MEMCACHED_USERNAME'), 62 | env('MEMCACHED_PASSWORD'), 63 | ], 64 | 'options' => [ 65 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 66 | ], 67 | 'servers' => [ 68 | [ 69 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 70 | 'port' => env('MEMCACHED_PORT', 11211), 71 | 'weight' => 100, 72 | ], 73 | ], 74 | ], 75 | 76 | 'redis' => [ 77 | 'driver' => 'redis', 78 | 'connection' => 'cache', 79 | 'lock_connection' => 'default', 80 | ], 81 | 82 | 'dynamodb' => [ 83 | 'driver' => 'dynamodb', 84 | 'key' => env('AWS_ACCESS_KEY_ID'), 85 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 86 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 87 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 88 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 89 | ], 90 | 91 | ], 92 | 93 | /* 94 | |-------------------------------------------------------------------------- 95 | | Cache Key Prefix 96 | |-------------------------------------------------------------------------- 97 | | 98 | | When utilizing a RAM based store such as APC or Memcached, there might 99 | | be other applications utilizing the same cache. So, we'll specify a 100 | | value to get prefixed to all our keys so we can avoid collisions. 101 | | 102 | */ 103 | 104 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 105 | 106 | ]; 107 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Database Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here are each of the database connections setup for your application. 26 | | Of course, examples of configuring each database platform that is 27 | | supported by Laravel is shown below to make development simple. 28 | | 29 | | 30 | | All database work in Laravel is done through the PHP PDO facilities 31 | | so make sure you have the driver for your particular database of 32 | | choice installed on your machine before you begin development. 33 | | 34 | */ 35 | 36 | 'connections' => [ 37 | 38 | 'sqlite' => [ 39 | 'driver' => 'sqlite', 40 | 'url' => env('DATABASE_URL'), 41 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 42 | 'prefix' => '', 43 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 44 | ], 45 | 46 | 'mysql' => [ 47 | 'driver' => 'mysql', 48 | 'url' => env('DATABASE_URL'), 49 | 'host' => env('DB_HOST', '127.0.0.1'), 50 | 'port' => env('DB_PORT', '3306'), 51 | 'database' => env('DB_DATABASE', 'forge'), 52 | 'username' => env('DB_USERNAME', 'forge'), 53 | 'password' => env('DB_PASSWORD', ''), 54 | 'unix_socket' => env('DB_SOCKET', ''), 55 | 'charset' => 'utf8mb4', 56 | 'collation' => 'utf8mb4_unicode_ci', 57 | 'prefix' => '', 58 | 'prefix_indexes' => true, 59 | 'strict' => true, 60 | 'engine' => null, 61 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 62 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 63 | ]) : [], 64 | ], 65 | 66 | 'pgsql' => [ 67 | 'driver' => 'pgsql', 68 | 'url' => env('DATABASE_URL'), 69 | 'host' => env('DB_HOST', '127.0.0.1'), 70 | 'port' => env('DB_PORT', '5432'), 71 | 'database' => env('DB_DATABASE', 'forge'), 72 | 'username' => env('DB_USERNAME', 'forge'), 73 | 'password' => env('DB_PASSWORD', ''), 74 | 'charset' => 'utf8', 75 | 'prefix' => '', 76 | 'prefix_indexes' => true, 77 | 'schema' => 'public', 78 | 'sslmode' => 'prefer', 79 | ], 80 | 81 | 'sqlsrv' => [ 82 | 'driver' => 'sqlsrv', 83 | 'url' => env('DATABASE_URL'), 84 | 'host' => env('DB_HOST', 'localhost'), 85 | 'port' => env('DB_PORT', '1433'), 86 | 'database' => env('DB_DATABASE', 'forge'), 87 | 'username' => env('DB_USERNAME', 'forge'), 88 | 'password' => env('DB_PASSWORD', ''), 89 | 'charset' => 'utf8', 90 | 'prefix' => '', 91 | 'prefix_indexes' => true, 92 | ], 93 | 94 | ], 95 | 96 | /* 97 | |-------------------------------------------------------------------------- 98 | | Migration Repository Table 99 | |-------------------------------------------------------------------------- 100 | | 101 | | This table keeps track of all the migrations that have already run for 102 | | your application. Using this information, we can determine which of 103 | | the migrations on disk haven't actually been run in the database. 104 | | 105 | */ 106 | 107 | 'migrations' => 'migrations', 108 | 109 | /* 110 | |-------------------------------------------------------------------------- 111 | | Redis Databases 112 | |-------------------------------------------------------------------------- 113 | | 114 | | Redis is an open source, fast, and advanced key-value store that also 115 | | provides a richer body of commands than a typical key-value system 116 | | such as APC or Memcached. Laravel makes it easy to dig right in. 117 | | 118 | */ 119 | 120 | 'redis' => [ 121 | 122 | 'client' => env('REDIS_CLIENT', 'phpredis'), 123 | 124 | 'options' => [ 125 | 'cluster' => env('REDIS_CLUSTER', 'redis'), 126 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 127 | ], 128 | 129 | 'default' => [ 130 | 'url' => env('REDIS_URL'), 131 | 'host' => env('REDIS_HOST', '127.0.0.1'), 132 | 'password' => env('REDIS_PASSWORD', null), 133 | 'port' => env('REDIS_PORT', '6379'), 134 | 'database' => env('REDIS_DB', '0'), 135 | ], 136 | 137 | 'cache' => [ 138 | 'url' => env('REDIS_URL'), 139 | 'host' => env('REDIS_HOST', '127.0.0.1'), 140 | 'password' => env('REDIS_PASSWORD', null), 141 | 'port' => env('REDIS_PORT', '6379'), 142 | 'database' => env('REDIS_CACHE_DB', '1'), 143 | ], 144 | 145 | ], 146 | 147 | ]; 148 | -------------------------------------------------------------------------------- /config/debugbar.php: -------------------------------------------------------------------------------- 1 | env('DEBUGBAR_ENABLED', null), 18 | 'except' => [ 19 | 'telescope*', 20 | 'horizon*', 21 | ], 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Storage settings 26 | |-------------------------------------------------------------------------- 27 | | 28 | | DebugBar stores data for session/ajax requests. 29 | | You can disable this, so the debugbar stores data in headers/session, 30 | | but this can cause problems with large data collectors. 31 | | By default, file storage (in the storage folder) is used. Redis and PDO 32 | | can also be used. For PDO, run the package migrations first. 33 | | 34 | */ 35 | 'storage' => [ 36 | 'enabled' => true, 37 | 'driver' => 'file', // redis, file, pdo, socket, custom 38 | 'path' => storage_path('debugbar'), // For file driver 39 | 'connection' => null, // Leave null for default connection (Redis/PDO) 40 | 'provider' => '', // Instance of StorageInterface for custom driver 41 | 'hostname' => '127.0.0.1', // Hostname to use with the "socket" driver 42 | 'port' => 2304, // Port to use with the "socket" driver 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | Vendors 48 | |-------------------------------------------------------------------------- 49 | | 50 | | Vendor files are included by default, but can be set to false. 51 | | This can also be set to 'js' or 'css', to only include javascript or css vendor files. 52 | | Vendor files are for css: font-awesome (including fonts) and highlight.js (css files) 53 | | and for js: jquery and and highlight.js 54 | | So if you want syntax highlighting, set it to true. 55 | | jQuery is set to not conflict with existing jQuery scripts. 56 | | 57 | */ 58 | 59 | 'include_vendors' => true, 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Capture Ajax Requests 64 | |-------------------------------------------------------------------------- 65 | | 66 | | The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors), 67 | | you can use this option to disable sending the data through the headers. 68 | | 69 | | Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools. 70 | */ 71 | 72 | 'capture_ajax' => true, 73 | 'add_ajax_timing' => false, 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Custom Error Handler for Deprecated warnings 78 | |-------------------------------------------------------------------------- 79 | | 80 | | When enabled, the Debugbar shows deprecated warnings for Symfony components 81 | | in the Messages tab. 82 | | 83 | */ 84 | 'error_handler' => false, 85 | 86 | /* 87 | |-------------------------------------------------------------------------- 88 | | Clockwork integration 89 | |-------------------------------------------------------------------------- 90 | | 91 | | The Debugbar can emulate the Clockwork headers, so you can use the Chrome 92 | | Extension, without the server-side code. It uses Debugbar collectors instead. 93 | | 94 | */ 95 | 'clockwork' => false, 96 | 97 | /* 98 | |-------------------------------------------------------------------------- 99 | | DataCollectors 100 | |-------------------------------------------------------------------------- 101 | | 102 | | Enable/disable DataCollectors 103 | | 104 | */ 105 | 106 | 'collectors' => [ 107 | 'phpinfo' => true, // Php version 108 | 'messages' => true, // Messages 109 | 'time' => true, // Time Datalogger 110 | 'memory' => true, // Memory usage 111 | 'exceptions' => true, // Exception displayer 112 | 'log' => true, // Logs from Monolog (merged in messages if enabled) 113 | 'db' => true, // Show database (PDO) queries and bindings 114 | 'views' => true, // Views with their data 115 | 'route' => true, // Current route information 116 | 'auth' => false, // Display Laravel authentication status 117 | 'gate' => true, // Display Laravel Gate checks 118 | 'session' => true, // Display session data 119 | 'symfony_request' => true, // Only one can be enabled.. 120 | 'mail' => true, // Catch mail messages 121 | 'laravel' => false, // Laravel version and environment 122 | 'events' => false, // All events fired 123 | 'default_request' => false, // Regular or special Symfony request logger 124 | 'logs' => false, // Add the latest log messages 125 | 'files' => false, // Show the included files 126 | 'config' => false, // Display config settings 127 | 'cache' => false, // Display cache events 128 | 'models' => true, // Display models 129 | 'livewire' => true, // Display Livewire (when available) 130 | ], 131 | 132 | /* 133 | |-------------------------------------------------------------------------- 134 | | Extra options 135 | |-------------------------------------------------------------------------- 136 | | 137 | | Configure some DataCollectors 138 | | 139 | */ 140 | 141 | 'options' => [ 142 | 'auth' => [ 143 | 'show_name' => true, // Also show the users name/email in the debugbar 144 | ], 145 | 'db' => [ 146 | 'with_params' => true, // Render SQL with the parameters substituted 147 | 'backtrace' => true, // Use a backtrace to find the origin of the query in your files. 148 | 'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults) 149 | 'timeline' => false, // Add the queries to the timeline 150 | 'explain' => [ // Show EXPLAIN output on queries 151 | 'enabled' => false, 152 | 'types' => ['SELECT'], // Deprecated setting, is always only SELECT 153 | ], 154 | 'hints' => false, // Show hints for common mistakes 155 | 'show_copy' => false, // Show copy button next to the query 156 | ], 157 | 'mail' => [ 158 | 'full_log' => false, 159 | ], 160 | 'views' => [ 161 | 'data' => false, //Note: Can slow down the application, because the data can be quite large.. 162 | ], 163 | 'route' => [ 164 | 'label' => true, // show complete route on bar 165 | ], 166 | 'logs' => [ 167 | 'file' => null, 168 | ], 169 | 'cache' => [ 170 | 'values' => true, // collect cache values 171 | ], 172 | ], 173 | 174 | /* 175 | |-------------------------------------------------------------------------- 176 | | Inject Debugbar in Response 177 | |-------------------------------------------------------------------------- 178 | | 179 | | Usually, the debugbar is added just before , by listening to the 180 | | Response after the App is done. If you disable this, you have to add them 181 | | in your template yourself. See http://phpdebugbar.com/docs/rendering.html 182 | | 183 | */ 184 | 185 | 'inject' => true, 186 | 187 | /* 188 | |-------------------------------------------------------------------------- 189 | | DebugBar route prefix 190 | |-------------------------------------------------------------------------- 191 | | 192 | | Sometimes you want to set route prefix to be used by DebugBar to load 193 | | its resources from. Usually the need comes from misconfigured web server or 194 | | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97 195 | | 196 | */ 197 | 'route_prefix' => '_debugbar', 198 | 199 | /* 200 | |-------------------------------------------------------------------------- 201 | | DebugBar route domain 202 | |-------------------------------------------------------------------------- 203 | | 204 | | By default DebugBar route served from the same domain that request served. 205 | | To override default domain, specify it as a non-empty value. 206 | */ 207 | 'route_domain' => null, 208 | 209 | /* 210 | |-------------------------------------------------------------------------- 211 | | DebugBar theme 212 | |-------------------------------------------------------------------------- 213 | | 214 | | Switches between light and dark theme. If set to auto it will respect system preferences 215 | | Possible values: auto, light, dark 216 | */ 217 | 'theme' => 'auto', 218 | ]; 219 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure as many filesystem "disks" as you wish, and you 24 | | may even configure multiple disks of the same driver. Defaults have 25 | | been setup for each driver as an example of the required options. 26 | | 27 | | Supported Drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | ], 37 | 38 | 'public' => [ 39 | 'driver' => 'local', 40 | 'root' => storage_path('app/public'), 41 | 'url' => env('APP_URL').'/storage', 42 | 'visibility' => 'public', 43 | ], 44 | 45 | 's3' => [ 46 | 'driver' => 's3', 47 | 'key' => env('AWS_ACCESS_KEY_ID'), 48 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 49 | 'region' => env('AWS_DEFAULT_REGION'), 50 | 'bucket' => env('AWS_BUCKET'), 51 | 'url' => env('AWS_URL'), 52 | 'endpoint' => env('AWS_ENDPOINT'), 53 | ], 54 | 55 | ], 56 | 57 | /* 58 | |-------------------------------------------------------------------------- 59 | | Symbolic Links 60 | |-------------------------------------------------------------------------- 61 | | 62 | | Here you may configure the symbolic links that will be created when the 63 | | `storage:link` Artisan command is executed. The array keys should be 64 | | the locations of the links and the values should be their targets. 65 | | 66 | */ 67 | 68 | 'links' => [ 69 | public_path('storage') => storage_path('app/public'), 70 | ], 71 | 72 | ]; 73 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/inertia.php: -------------------------------------------------------------------------------- 1 | false, 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Page 23 | |-------------------------------------------------------------------------- 24 | | 25 | | The values described here are used to locate Inertia components on the 26 | | filesystem. For instance, when using `assertInertia`, the assertion 27 | | attempts to locate the component as a file relative to any of the 28 | | paths AND with any of the extensions specified here. 29 | | 30 | */ 31 | 32 | 'page' => [ 33 | 34 | /** 35 | * Determines whether assertions should check that Inertia page components 36 | * actually exist on the filesystem instead of just checking responses. 37 | */ 38 | 'should_exist' => true, 39 | 40 | /* 41 | * A list of root paths to your Inertia page components. 42 | */ 43 | 'paths' => [ 44 | 45 | resource_path('js/Pages'), 46 | 47 | ], 48 | 49 | /* 50 | * A list of valid Inertia page component extensions. 51 | */ 52 | 'extensions' => [ 53 | 54 | 'vue', 55 | // 'svelte', 56 | 57 | ], 58 | 59 | ], 60 | 61 | ]; 62 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Log Channels 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may configure the log channels for your application. Out of 28 | | the box, Laravel uses the Monolog PHP logging library. This gives 29 | | you a variety of powerful log handlers / formatters to utilize. 30 | | 31 | | Available Drivers: "single", "daily", "slack", "syslog", 32 | | "errorlog", "monolog", 33 | | "custom", "stack" 34 | | 35 | */ 36 | 37 | 'channels' => [ 38 | 'stack' => [ 39 | 'driver' => 'stack', 40 | 'channels' => ['single'], 41 | 'ignore_exceptions' => false, 42 | ], 43 | 44 | 'single' => [ 45 | 'driver' => 'single', 46 | 'path' => storage_path('logs/laravel.log'), 47 | 'level' => env('LOG_LEVEL', 'debug'), 48 | ], 49 | 50 | 'daily' => [ 51 | 'driver' => 'daily', 52 | 'path' => storage_path('logs/laravel.log'), 53 | 'level' => env('LOG_LEVEL', 'debug'), 54 | 'days' => 14, 55 | ], 56 | 57 | 'slack' => [ 58 | 'driver' => 'slack', 59 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 60 | 'username' => 'Laravel Log', 61 | 'emoji' => ':boom:', 62 | 'level' => env('LOG_LEVEL', 'critical'), 63 | ], 64 | 65 | 'papertrail' => [ 66 | 'driver' => 'monolog', 67 | 'level' => env('LOG_LEVEL', 'debug'), 68 | 'handler' => SyslogUdpHandler::class, 69 | 'handler_with' => [ 70 | 'host' => env('PAPERTRAIL_URL'), 71 | 'port' => env('PAPERTRAIL_PORT'), 72 | ], 73 | ], 74 | 75 | 'stderr' => [ 76 | 'driver' => 'monolog', 77 | 'handler' => StreamHandler::class, 78 | 'formatter' => env('LOG_STDERR_FORMATTER'), 79 | 'with' => [ 80 | 'stream' => 'php://stderr', 81 | ], 82 | ], 83 | 84 | 'syslog' => [ 85 | 'driver' => 'syslog', 86 | 'level' => env('LOG_LEVEL', 'debug'), 87 | ], 88 | 89 | 'errorlog' => [ 90 | 'driver' => 'errorlog', 91 | 'level' => env('LOG_LEVEL', 'debug'), 92 | ], 93 | 94 | 'null' => [ 95 | 'driver' => 'monolog', 96 | 'handler' => NullHandler::class, 97 | ], 98 | 99 | 'emergency' => [ 100 | 'path' => storage_path('logs/laravel.log'), 101 | ], 102 | ], 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'smtp'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Mailer Configurations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure all of the mailers used by your application plus 24 | | their respective settings. Several examples have been configured for 25 | | you and you are free to add your own as your application requires. 26 | | 27 | | Laravel supports a variety of mail "transport" drivers to be used while 28 | | sending an e-mail. You will specify which one you are using for your 29 | | mailers below. You are free to add additional mailers as required. 30 | | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", 32 | | "postmark", "log", "array" 33 | | 34 | */ 35 | 36 | 'mailers' => [ 37 | 'smtp' => [ 38 | 'transport' => 'smtp', 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 40 | 'port' => env('MAIL_PORT', 587), 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 42 | 'username' => env('MAIL_USERNAME'), 43 | 'password' => env('MAIL_PASSWORD'), 44 | 'timeout' => null, 45 | 'auth_mode' => null, 46 | ], 47 | 48 | 'ses' => [ 49 | 'transport' => 'ses', 50 | ], 51 | 52 | 'mailgun' => [ 53 | 'transport' => 'mailgun', 54 | ], 55 | 56 | 'postmark' => [ 57 | 'transport' => 'postmark', 58 | ], 59 | 60 | 'sendmail' => [ 61 | 'transport' => 'sendmail', 62 | 'path' => '/usr/sbin/sendmail -bs', 63 | ], 64 | 65 | 'log' => [ 66 | 'transport' => 'log', 67 | 'channel' => env('MAIL_LOG_CHANNEL'), 68 | ], 69 | 70 | 'array' => [ 71 | 'transport' => 'array', 72 | ], 73 | ], 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Global "From" Address 78 | |-------------------------------------------------------------------------- 79 | | 80 | | You may wish for all e-mails sent by your application to be sent from 81 | | the same address. Here, you may specify a name and address that is 82 | | used globally for all e-mails that are sent by your application. 83 | | 84 | */ 85 | 86 | 'from' => [ 87 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 88 | 'name' => env('MAIL_FROM_NAME', 'Example'), 89 | ], 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Markdown Mail Settings 94 | |-------------------------------------------------------------------------- 95 | | 96 | | If you are using Markdown based email rendering, you may configure your 97 | | theme and component paths here, allowing you to customize the design 98 | | of the emails. Or, you may simply stick with the Laravel defaults! 99 | | 100 | */ 101 | 102 | 'markdown' => [ 103 | 'theme' => 'default', 104 | 105 | 'paths' => [ 106 | resource_path('views/vendor/mail'), 107 | ], 108 | ], 109 | 110 | ]; 111 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | 'block_for' => 0, 50 | ], 51 | 52 | 'sqs' => [ 53 | 'driver' => 'sqs', 54 | 'key' => env('AWS_ACCESS_KEY_ID'), 55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 56 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 58 | 'suffix' => env('SQS_SUFFIX'), 59 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 60 | ], 61 | 62 | 'redis' => [ 63 | 'driver' => 'redis', 64 | 'connection' => 'default', 65 | 'queue' => env('REDIS_QUEUE', 'default'), 66 | 'retry_after' => 90, 67 | 'block_for' => null, 68 | ], 69 | 70 | ], 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Failed Queue Jobs 75 | |-------------------------------------------------------------------------- 76 | | 77 | | These options configure the behavior of failed queue job logging so you 78 | | can control which database and table are used to store the jobs that 79 | | have failed. You may change them to any database / table you wish. 80 | | 81 | */ 82 | 83 | 'failed' => [ 84 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 85 | 'database' => env('DB_CONNECTION', 'mysql'), 86 | 'table' => 'failed_jobs', 87 | ], 88 | 89 | ]; 90 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to immediately expire on the browser closing, set that option. 31 | | 32 | */ 33 | 34 | 'lifetime' => env('SESSION_LIFETIME', 120), 35 | 36 | 'expire_on_close' => false, 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Session Encryption 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This option allows you to easily specify that all of your session data 44 | | should be encrypted before it is stored. All encryption will be run 45 | | automatically by Laravel and you can use the Session like normal. 46 | | 47 | */ 48 | 49 | 'encrypt' => false, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Session File Location 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When using the native session driver, we need a location where session 57 | | files may be stored. A default has been set for you but a different 58 | | location may be specified. This is only needed for file sessions. 59 | | 60 | */ 61 | 62 | 'files' => storage_path('framework/sessions'), 63 | 64 | /* 65 | |-------------------------------------------------------------------------- 66 | | Session Database Connection 67 | |-------------------------------------------------------------------------- 68 | | 69 | | When using the "database" or "redis" session drivers, you may specify a 70 | | connection that should be used to manage these sessions. This should 71 | | correspond to a connection in your database configuration options. 72 | | 73 | */ 74 | 75 | 'connection' => env('SESSION_CONNECTION', null), 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Session Database Table 80 | |-------------------------------------------------------------------------- 81 | | 82 | | When using the "database" session driver, you may specify the table we 83 | | should use to manage the sessions. Of course, a sensible default is 84 | | provided for you; however, you are free to change this as needed. 85 | | 86 | */ 87 | 88 | 'table' => 'sessions', 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Session Cache Store 93 | |-------------------------------------------------------------------------- 94 | | 95 | | While using one of the framework's cache driven session backends you may 96 | | list a cache store that should be used for these sessions. This value 97 | | must match with one of the application's configured cache "stores". 98 | | 99 | | Affects: "apc", "dynamodb", "memcached", "redis" 100 | | 101 | */ 102 | 103 | 'store' => env('SESSION_STORE', null), 104 | 105 | /* 106 | |-------------------------------------------------------------------------- 107 | | Session Sweeping Lottery 108 | |-------------------------------------------------------------------------- 109 | | 110 | | Some session drivers must manually sweep their storage location to get 111 | | rid of old sessions from storage. Here are the chances that it will 112 | | happen on a given request. By default, the odds are 2 out of 100. 113 | | 114 | */ 115 | 116 | 'lottery' => [2, 100], 117 | 118 | /* 119 | |-------------------------------------------------------------------------- 120 | | Session Cookie Name 121 | |-------------------------------------------------------------------------- 122 | | 123 | | Here you may change the name of the cookie used to identify a session 124 | | instance by ID. The name specified here will get used every time a 125 | | new session cookie is created by the framework for every driver. 126 | | 127 | */ 128 | 129 | 'cookie' => env( 130 | 'SESSION_COOKIE', 131 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 132 | ), 133 | 134 | /* 135 | |-------------------------------------------------------------------------- 136 | | Session Cookie Path 137 | |-------------------------------------------------------------------------- 138 | | 139 | | The session cookie path determines the path for which the cookie will 140 | | be regarded as available. Typically, this will be the root path of 141 | | your application but you are free to change this when necessary. 142 | | 143 | */ 144 | 145 | 'path' => '/', 146 | 147 | /* 148 | |-------------------------------------------------------------------------- 149 | | Session Cookie Domain 150 | |-------------------------------------------------------------------------- 151 | | 152 | | Here you may change the domain of the cookie used to identify a session 153 | | in your application. This will determine which domains the cookie is 154 | | available to in your application. A sensible default has been set. 155 | | 156 | */ 157 | 158 | 'domain' => env('SESSION_DOMAIN', null), 159 | 160 | /* 161 | |-------------------------------------------------------------------------- 162 | | HTTPS Only Cookies 163 | |-------------------------------------------------------------------------- 164 | | 165 | | By setting this option to true, session cookies will only be sent back 166 | | to the server if the browser has a HTTPS connection. This will keep 167 | | the cookie from being sent to you if it can not be done securely. 168 | | 169 | */ 170 | 171 | 'secure' => env('SESSION_SECURE_COOKIE'), 172 | 173 | /* 174 | |-------------------------------------------------------------------------- 175 | | HTTP Access Only 176 | |-------------------------------------------------------------------------- 177 | | 178 | | Setting this value to true will prevent JavaScript from accessing the 179 | | value of the cookie and the cookie will only be accessible through 180 | | the HTTP protocol. You are free to modify this option if needed. 181 | | 182 | */ 183 | 184 | 'http_only' => true, 185 | 186 | /* 187 | |-------------------------------------------------------------------------- 188 | | Same-Site Cookies 189 | |-------------------------------------------------------------------------- 190 | | 191 | | This option determines how your cookies behave when cross-site requests 192 | | take place, and can be used to mitigate CSRF attacks. By default, we 193 | | will set this value to "lax" since this is a secure default value. 194 | | 195 | | Supported: "lax", "strict", "none", null 196 | | 197 | */ 198 | 199 | 'same_site' => 'lax', 200 | 201 | ]; 202 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /config/websockets.php: -------------------------------------------------------------------------------- 1 | [ 11 | 'port' => env('LARAVEL_WEBSOCKETS_PORT', 6001), 12 | ], 13 | 14 | /* 15 | * This package comes with multi tenancy out of the box. Here you can 16 | * configure the different apps that can use the webSockets server. 17 | * 18 | * Optionally you specify capacity so you can limit the maximum 19 | * concurrent connections for a specific app. 20 | * 21 | * Optionally you can disable client events so clients cannot send 22 | * messages to each other via the webSockets. 23 | */ 24 | 'apps' => [ 25 | [ 26 | 'id' => env('PUSHER_APP_ID'), 27 | 'name' => env('APP_NAME'), 28 | 'key' => env('PUSHER_APP_KEY'), 29 | 'secret' => env('PUSHER_APP_SECRET'), 30 | 'path' => env('PUSHER_APP_PATH'), 31 | 'capacity' => null, 32 | 'enable_client_messages' => false, 33 | 'enable_statistics' => true, 34 | ], 35 | ], 36 | 37 | /* 38 | * This class is responsible for finding the apps. The default provider 39 | * will use the apps defined in this config file. 40 | * 41 | * You can create a custom provider by implementing the 42 | * `AppProvider` interface. 43 | */ 44 | 'app_provider' => BeyondCode\LaravelWebSockets\Apps\ConfigAppProvider::class, 45 | 46 | /* 47 | * This array contains the hosts of which you want to allow incoming requests. 48 | * Leave this empty if you want to accept requests from all hosts. 49 | */ 50 | 'allowed_origins' => [ 51 | // 52 | ], 53 | 54 | /* 55 | * The maximum request size in kilobytes that is allowed for an incoming WebSocket request. 56 | */ 57 | 'max_request_size_in_kb' => 250, 58 | 59 | /* 60 | * This path will be used to register the necessary routes for the package. 61 | */ 62 | 'path' => 'laravel-websockets', 63 | 64 | /* 65 | * Dashboard Routes Middleware 66 | * 67 | * These middleware will be assigned to every dashboard route, giving you 68 | * the chance to add your own middleware to this list or change any of 69 | * the existing middleware. Or, you can simply stick with this list. 70 | */ 71 | 'middleware' => [ 72 | 'web', 73 | Authorize::class, 74 | ], 75 | 76 | 'statistics' => [ 77 | /* 78 | * This model will be used to store the statistics of the WebSocketsServer. 79 | * The only requirement is that the model should extend 80 | * `WebSocketsStatisticsEntry` provided by this package. 81 | */ 82 | 'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class, 83 | 84 | /** 85 | * The Statistics Logger will, by default, handle the incoming statistics, store them 86 | * and then release them into the database on each interval defined below. 87 | */ 88 | 'logger' => BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class, 89 | 90 | /* 91 | * Here you can specify the interval in seconds at which statistics should be logged. 92 | */ 93 | 'interval_in_seconds' => 60, 94 | 95 | /* 96 | * When the clean-command is executed, all recorded statistics older than 97 | * the number of days specified here will be deleted. 98 | */ 99 | 'delete_statistics_older_than_days' => 60, 100 | 101 | /* 102 | * Use an DNS resolver to make the requests to the statistics logger 103 | * default is to resolve everything to 127.0.0.1. 104 | */ 105 | 'perform_dns_lookup' => false, 106 | ], 107 | 108 | /* 109 | * Define the optional SSL context for your WebSocket connections. 110 | * You can see all available options at: http://php.net/manual/en/context.ssl.php 111 | */ 112 | 'ssl' => [ 113 | /* 114 | * Path to local certificate file on filesystem. It must be a PEM encoded file which 115 | * contains your certificate and private key. It can optionally contain the 116 | * certificate chain of issuers. The private key also may be contained 117 | * in a separate file specified by local_pk. 118 | */ 119 | 'local_cert' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null), 120 | 121 | /* 122 | * Path to local private key file on filesystem in case of separate files for 123 | * certificate (local_cert) and private key. 124 | */ 125 | 'local_pk' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null), 126 | 127 | /* 128 | * Passphrase for your local_cert file. 129 | */ 130 | 'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null), 131 | ], 132 | 133 | /* 134 | * Channel Manager 135 | * This class handles how channel persistence is handled. 136 | * By default, persistence is stored in an array by the running webserver. 137 | * The only requirement is that the class should implement 138 | * `ChannelManager` interface provided by this package. 139 | */ 140 | 'channel_manager' => \BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager::class, 141 | ]; 142 | -------------------------------------------------------------------------------- /config/ziggy.php: -------------------------------------------------------------------------------- 1 | true, 5 | 'blacklist' => ['debugbar.*', 'horizon.*', 'admin.*'], 6 | ]; 7 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->name, 27 | 'email' => $this->faker->unique()->safeEmail, 28 | 'email_verified_at' => now(), 29 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 30 | 'remember_token' => Str::random(10), 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('app_id'); 19 | $table->integer('peak_connection_count'); 20 | $table->integer('websocket_message_count'); 21 | $table->integer('api_message_count'); 22 | $table->nullableTimestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('websockets_statistics_entries'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('uuid')->unique(); 19 | $table->text('connection'); 20 | $table->text('queue'); 21 | $table->longText('payload'); 22 | $table->longText('exception'); 23 | $table->timestamp('failed_at')->useCurrent(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('failed_jobs'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /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": "npm run development -- --watch", 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 --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "@fortawesome/fontawesome-free": "^5.12.0", 14 | "@inertiajs/inertia": "^0.1.9", 15 | "@inertiajs/inertia-vue": "^0.1.4", 16 | "@inertiajs/progress": "^0.1.2", 17 | "@mdi/font": "^4.9.95", 18 | "@mdi/js": "^5.9.55", 19 | "browser-sync": "^2.26.13", 20 | "browser-sync-webpack-plugin": "^2.3.0", 21 | "cross-env": "^7.0.3", 22 | "deepmerge": "^4.2.2", 23 | "eslint-plugin-import": "^2.19.1", 24 | "eslint-plugin-vue": "^7.5.0", 25 | "fibers": "^5.0.0", 26 | "font-awesome": "^4.7.0", 27 | "laravel-mix": "5.0.9", 28 | "lodash": "^4.17.20", 29 | "material-design-icons-iconfont": "^6.1.0", 30 | "resolve-url-loader": "^3.1.2", 31 | "roboto-fontface": "^0.10.0", 32 | "sass": "^1.32.4", 33 | "sass-loader": "^10.1.1", 34 | "vue": "^2.6.11", 35 | "vue-template-compiler": "^2.6.11", 36 | "vuetify": "^2.4.2", 37 | "vuetify-loader": "1.4.3" 38 | }, 39 | "dependencies": { 40 | "@types/ziggy-js": "^0.9.0", 41 | "axios": "^0.21.1", 42 | "eslint": "^7.18.0", 43 | "laravel-echo": "^1.10.0", 44 | "object-to-formdata": "^4.1.0", 45 | "pusher-js": "^7.0.2", 46 | "sweetalert2": "^9.17.2", 47 | "vee-validate": "^2.2.15", 48 | "vform": "^1.0.1", 49 | "vue-axios": "^2.1.5", 50 | "vue-sessionstorage": "^1.0.0", 51 | "vue2-storage": "^5.0.0", 52 | "ziggy": "github:tightenco/ziggy" 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The Laravel Coding Standards 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | *.php 73 | 74 | 75 | 76 | *.php 77 | 78 | 79 | 80 | app 81 | config 82 | public 83 | resources 84 | routes 85 | tests 86 | 87 | */database/* 88 | */cache/* 89 | */*.js 90 | */*.css 91 | */*.xml 92 | */*.blade.php 93 | */autoload.php 94 | */storage/* 95 | */docs/* 96 | */vendor/* 97 | */migrations/* 98 | */config/* 99 | */public/index.php 100 | */*.blade.php 101 | */Middleware/* 102 | */Console/Kernel.php 103 | */Exceptions/Handler.php 104 | */Http/Kernel.php 105 | */Providers/* 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/css/app.css: -------------------------------------------------------------------------------- 1 | [v-cloak] .v-cloak--block { 2 | display: block; 3 | } 4 | 5 | [v-cloak] .v-cloak--inline { 6 | display: inline; 7 | } 8 | 9 | [v-cloak] .v-cloak--inlineBlock { 10 | display: inline-block; 11 | } 12 | 13 | [v-cloak] .v-cloak--hidden { 14 | display: none; 15 | } 16 | 17 | [v-cloak] .v-cloak--invisible { 18 | visibility: hidden; 19 | } 20 | 21 | .v-cloak--block, 22 | .v-cloak--inline, 23 | .v-cloak--inlineBlock { 24 | display: none; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/favicon.ico -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@mdi/materialdesignicons-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@mdi/materialdesignicons-webfont.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@mdi/materialdesignicons-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@mdi/materialdesignicons-webfont.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@mdi/materialdesignicons-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@mdi/materialdesignicons-webfont.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@mdi/materialdesignicons-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/@mdi/materialdesignicons-webfont.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/font-awesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/font-awesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/font-awesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/fonts/vendor/font-awesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/font-awesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.eot -------------------------------------------------------------------------------- /public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/material-design-icons-icondist/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Black.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Black.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Black.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-BlackItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-BlackItalic.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-BlackItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-BlackItalic.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Bold.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Bold.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-BoldItalic.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-BoldItalic.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Light.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Light.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-LightItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-LightItalic.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-LightItalic.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Medium.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Medium.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-MediumItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-MediumItalic.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-MediumItalic.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Regular.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Regular.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-RegularItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-RegularItalic.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-RegularItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-RegularItalic.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Thin.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-Thin.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-ThinItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-ThinItalic.woff -------------------------------------------------------------------------------- /public/fonts/vendor/roboto-fontface/roboto/Roboto-ThinItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/public/fonts/vendor/roboto-fontface/roboto/Roboto-ThinItalic.woff2 -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = tap($kernel->handle( 52 | $request = Request::capture() 53 | ))->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goldcoders-corp/vuetified/1c3be8e37c8e68e9fea13def8f450fde9734b0b8/resources/css/app.css -------------------------------------------------------------------------------- /resources/js/Pages/Error.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 61 | 62 | 66 | -------------------------------------------------------------------------------- /resources/js/Pages/Login.vue: -------------------------------------------------------------------------------- 1 | 58 | 59 | 97 | 98 | 100 | -------------------------------------------------------------------------------- /resources/js/Shared/Confirm.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 80 | 81 | 83 | -------------------------------------------------------------------------------- /resources/js/Shared/VHyperlink.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 21 | 22 | 23 | 24 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /resources/js/Shared/Vlink.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 135 | 136 | 142 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import { InertiaApp } from '@inertiajs/inertia-vue' 2 | import { InertiaProgress } from '@inertiajs/progress' 3 | 4 | import Vue from 'vue' 5 | import './plugins' 6 | import vuetify from './vuetify' 7 | 8 | window._ = require("lodash") 9 | 10 | Vue.use(InertiaApp) 11 | 12 | Vue.config.productionTip = false 13 | const app = document.getElementById('app') 14 | InertiaProgress.init() 15 | 16 | new Vue({ 17 | vuetify, 18 | render: h => h(InertiaApp, { 19 | props: { 20 | initialPage: JSON.parse(app.dataset.page), 21 | resolveComponent: name => import(`./Pages/${name}`).then(module => module.default), 22 | resolveErrors: page => (page.props.errors || {}), 23 | }, 24 | }), 25 | created() { 26 | this.$storage.setOptions({ 27 | prefix: 'app_', 28 | driver: 'local', 29 | ttl: 60 * 60 * 24 * 1000 // 24 hours 30 | }) 31 | } 32 | }).$mount(app) 33 | -------------------------------------------------------------------------------- /resources/js/layouts/MainLayout.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 43 | -------------------------------------------------------------------------------- /resources/js/layouts/ModalLayout.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 38 | 39 | 41 | -------------------------------------------------------------------------------- /resources/js/mixins/acl.js: -------------------------------------------------------------------------------- 1 | export default { 2 | methods: { 3 | isLoggedIn() { 4 | return !!this.$page.auth.isLoggedIn; 5 | }, 6 | hasRole(payload) { 7 | let me = this.$page.auth.user; 8 | return _.includes(me.roles, payload); 9 | }, 10 | hasPermission(payload) { 11 | let me = this.$page.auth.user; 12 | return _.includes(me.permissions, payload); 13 | }, 14 | hasAnyPermission(permissions) { 15 | let me = this.$page.auth.user; 16 | return permissions.some(p => me.permissions.includes(p)); 17 | }, 18 | hasAnyRole(roles) { 19 | let me = this.$page.auth.user; 20 | return roles.some(r => me.roles.includes(r)); 21 | }, 22 | hasAllRoles(roles) { 23 | let me = this.$page.auth.user; 24 | return _.difference(roles, me.roles).length === 0; 25 | }, 26 | hasAllPermissions(permissions) { 27 | let me = this.$page.auth.user; 28 | return _.difference(permissions, me.permissions).length === 0; 29 | }, 30 | can(permission) { 31 | return this.$page.auth.user.can[permission]; 32 | }, 33 | }, 34 | }; 35 | -------------------------------------------------------------------------------- /resources/js/mixins/confirmation.js: -------------------------------------------------------------------------------- 1 | export default { 2 | methods: { 3 | confirmed(cb) { 4 | let self = this; 5 | return params => { 6 | cb(params); 7 | }; 8 | }, 9 | openDialog(item) { 10 | Bus.$emit("open-confirmation", item); 11 | }, 12 | openMassDialog(selected) { 13 | Bus.$emit("open-mass-confirm-dialog", selected); 14 | } 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /resources/js/mixins/validation-error.js: -------------------------------------------------------------------------------- 1 | export default { 2 | /* this mixins is responsible for concatinating error messages from vform and vee-validate */ 3 | methods: { 4 | /* errorBag is relataed to veeValidate config name*/ 5 | /* form is related to vform - removed not used */ 6 | /* this.$page.errors is related to session errors return by laravel */ 7 | errorMessages(field) { 8 | if (this.$page.errors[field]) { 9 | return this.errors 10 | .collect(field) 11 | .concat(this.$page.errors[field]); 12 | } 13 | return this.errors.collect(field); 14 | }, 15 | hasErrors(field) { 16 | let errors = this.errors 17 | .collect(field) 18 | .concat(this.form.errors.only(field)); 19 | if (errors.length > 0) { 20 | return true; 21 | } 22 | return false; 23 | }, 24 | }, 25 | }; 26 | -------------------------------------------------------------------------------- /resources/js/partials/AppFooter.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 28 | -------------------------------------------------------------------------------- /resources/js/partials/AppNavBar.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 25 | 26 | 28 | -------------------------------------------------------------------------------- /resources/js/partials/LeftSideBar.vue: -------------------------------------------------------------------------------- 1 | 52 | 53 | 96 | -------------------------------------------------------------------------------- /resources/js/plugins/bus.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | 3 | var Bus = (window.Bus = new Vue()); 4 | 5 | export default Bus; 6 | -------------------------------------------------------------------------------- /resources/js/plugins/index.js: -------------------------------------------------------------------------------- 1 | 2 | import "./bus"; 3 | import "./session"; 4 | import "./store"; 5 | import "./vee-validate"; 6 | import "./websocket"; 7 | // import "./route"; // uncomment for production 8 | -------------------------------------------------------------------------------- /resources/js/plugins/route.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | 3 | import route from 'ziggy'; 4 | import { Ziggy } from '../ziggy'; 5 | 6 | Vue.mixin({ 7 | methods: { 8 | route: (name, params, absolute, config = Ziggy) => route(name, params, absolute, config), 9 | }, 10 | }); -------------------------------------------------------------------------------- /resources/js/plugins/session.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import VueSessionStorage from "vue-sessionstorage"; 3 | Vue.use(VueSessionStorage); 4 | -------------------------------------------------------------------------------- /resources/js/plugins/store.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import { Vue2Storage } from 'vue2-storage' 3 | 4 | Vue.use(Vue2Storage) 5 | // You can pass options 6 | Vue.use(Vue2Storage, { 7 | prefix: "app_", 8 | driver: "local", 9 | ttl: 0 // disables the lifetime and the record will be kept forever 10 | // ttl: 60 * 60 * 24 * 1000 // 24 hours 11 | }); 12 | 13 | // add this event to remove all ls at window closed 14 | // window.onbeforeunload = function() { 15 | // localStorage.removeItem(key); 16 | // return ""; 17 | // }; 18 | -------------------------------------------------------------------------------- /resources/js/plugins/vee-validate.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import VeeValidate from "vee-validate"; /* Form Validation */ 3 | 4 | /* Form Validation Config */ 5 | const veeConfig = { 6 | errorBagName: "errors", // change if property conflicts. 7 | fieldsBagName: "fields", 8 | delay: 0, 9 | locale: "en", 10 | dictionary: null, 11 | strict: true, 12 | classes: false, 13 | classNames: { 14 | touched: "touched", // the control has been blurred 15 | untouched: "untouched", // the control hasn't been blurred 16 | valid: "valid", // model is valid 17 | invalid: "invalid", // model is invalid 18 | pristine: "pristine", // control has not been interacted with 19 | dirty: "dirty", // control has been interacted with 20 | }, 21 | events: "input|blur", 22 | inject: true, 23 | validity: false, 24 | aria: true, 25 | }; 26 | 27 | Vue.use(VeeValidate, veeConfig); 28 | 29 | -------------------------------------------------------------------------------- /resources/js/plugins/websocket.js: -------------------------------------------------------------------------------- 1 | import Echo from "laravel-echo" 2 | 3 | window.Pusher = require('pusher-js'); 4 | 5 | window.Echo = new Echo({ 6 | broadcaster: 'pusher', 7 | key: process.env.MIX_PUSHER_APP_KEY, 8 | cluster: process.env.MIX_PUSHER_APP_CLUSTER, 9 | forceTLS: true 10 | }); 11 | // https://laravel.com/docs/8.x/broadcasting -------------------------------------------------------------------------------- /resources/js/vuetify.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import Vuetify from "vuetify/lib"; 3 | import "roboto-fontface/css/roboto/roboto-fontface.css"; 4 | // import 'vuetify/dist/vuetify.min.css' 5 | // import colors from "vuetify/lib/util/colors"; 6 | //? https://vuetifyjs.com/en/framework/icons#using-custom-icons 7 | 8 | 9 | import "material-design-icons-iconfont/dist/material-design-icons.css"; //! iconfont: 'md' 10 | //? https://material.io/resources/icons/?style=baseline 11 | import "@mdi/font/css/materialdesignicons.css"; //! iconfont: 'mdi' 12 | //? https://materialdesignicons.com/ 13 | import "@fortawesome/fontawesome-free/css/all.css"; //! iconfont: 'fa' 14 | //? https://fontawesome.com/icons?d=gallery&m=free 15 | import "font-awesome/css/font-awesome.min.css"; //! iconfont: 'fa4' 16 | //? https://fontawesome.com/v4.7.0/icons/ 17 | 18 | //! ----------------mdiSvg Usage On Component --------------------------------- 19 | // On Script Tag 20 | //! import '@mdi/js/' //! iconfont: mdiSvg 21 | //! import {mdiAccount} from '@mdi/js/' 22 | //! data() { 23 | //! return { 24 | //! svgPath: mdiAccount 25 | //! } 26 | //! }, 27 | // On template Tag 28 | //! {{ svgPath }} 29 | //! ---------------------------------------------------------------------------- 30 | 31 | Vue.use(Vuetify); 32 | 33 | export default new Vuetify({ 34 | icons: { 35 | iconfont: "mdi" || "mdiSvg" || "md" || "fa" || "fa4", 36 | }, 37 | theme: { 38 | dark: false, 39 | // define our Theme for light and Dark 40 | themes: { 41 | light: { 42 | primary: "#BA9A5a", 43 | secondary: "#607D8B", 44 | accent: "#103050", 45 | error: "#800020", 46 | info: "#7fcac3", 47 | success: "#00695c", 48 | warning: "#f9a825", 49 | }, 50 | dark: { 51 | primary: "#BA9A5a", 52 | }, 53 | }, 54 | }, 55 | options: { 56 | customProperties: true, 57 | }, 58 | }); 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /resources/js/ziggy.js: -------------------------------------------------------------------------------- 1 | const Ziggy = {"url":"http:\/\/vuetified.test","port":null,"defaults":{},"routes":{"debugbar.openhandler":{"uri":"_debugbar\/open","methods":["GET","HEAD"]},"debugbar.clockwork":{"uri":"_debugbar\/clockwork\/{id}","methods":["GET","HEAD"]},"debugbar.telescope":{"uri":"_debugbar\/telescope\/{id}","methods":["GET","HEAD"]},"debugbar.assets.css":{"uri":"_debugbar\/assets\/stylesheets","methods":["GET","HEAD"]},"debugbar.assets.js":{"uri":"_debugbar\/assets\/javascript","methods":["GET","HEAD"]},"debugbar.cache.delete":{"uri":"_debugbar\/cache\/{key}\/{tags?}","methods":["DELETE"]},"home":{"uri":"\/","methods":["GET","HEAD"]},"laravel-websockets.statistics":{"uri":"api\/{appId}\/statistics","methods":["GET","HEAD"]},"laravel-websockets.auth":{"uri":"auth","methods":["POST"]},"laravel-websockets.event":{"uri":"event","methods":["POST"]},"impersonate":{"uri":"impersonate\/take\/{id}\/{guardName?}","methods":["GET","HEAD"]},"impersonate.leave":{"uri":"impersonate\/leave","methods":["GET","HEAD"]},"login":{"uri":"login","methods":["GET","HEAD"]},"login.attempt":{"uri":"login","methods":["POST"]},"logout":{"uri":"logout","methods":["GET","HEAD"]},"logout.attempt":{"uri":"logout","methods":["POST"]}}}; 2 | 3 | if (typeof window !== 'undefined' && typeof window.Ziggy !== 'undefined') { 4 | for (let name in window.Ziggy.routes) { 5 | Ziggy.routes[name] = window.Ziggy.routes[name]; 6 | } 7 | } 8 | 9 | export { Ziggy }; 10 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'password' => 'The provided password is incorrect.', 18 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/lang/en/validation.php: -------------------------------------------------------------------------------- 1 | 'The :attribute must be accepted.', 17 | 'active_url' => 'The :attribute is not a valid URL.', 18 | 'after' => 'The :attribute must be a date after :date.', 19 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 20 | 'alpha' => 'The :attribute may only contain letters.', 21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', 22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.', 23 | 'array' => 'The :attribute must be an array.', 24 | 'before' => 'The :attribute must be a date before :date.', 25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 26 | 'between' => [ 27 | 'numeric' => 'The :attribute must be between :min and :max.', 28 | 'file' => 'The :attribute must be between :min and :max kilobytes.', 29 | 'string' => 'The :attribute must be between :min and :max characters.', 30 | 'array' => 'The :attribute must have between :min and :max items.', 31 | ], 32 | 'boolean' => 'The :attribute field must be true or false.', 33 | 'confirmed' => 'The :attribute confirmation does not match.', 34 | 'date' => 'The :attribute is not a valid date.', 35 | 'date_equals' => 'The :attribute must be a date equal to :date.', 36 | 'date_format' => 'The :attribute does not match the format :format.', 37 | 'different' => 'The :attribute and :other must be different.', 38 | 'digits' => 'The :attribute must be :digits digits.', 39 | 'digits_between' => 'The :attribute must be between :min and :max digits.', 40 | 'dimensions' => 'The :attribute has invalid image dimensions.', 41 | 'distinct' => 'The :attribute field has a duplicate value.', 42 | 'email' => 'The :attribute must be a valid email address.', 43 | 'ends_with' => 'The :attribute must end with one of the following: :values.', 44 | 'exists' => 'The selected :attribute is invalid.', 45 | 'file' => 'The :attribute must be a file.', 46 | 'filled' => 'The :attribute field must have a value.', 47 | 'gt' => [ 48 | 'numeric' => 'The :attribute must be greater than :value.', 49 | 'file' => 'The :attribute must be greater than :value kilobytes.', 50 | 'string' => 'The :attribute must be greater than :value characters.', 51 | 'array' => 'The :attribute must have more than :value items.', 52 | ], 53 | 'gte' => [ 54 | 'numeric' => 'The :attribute must be greater than or equal :value.', 55 | 'file' => 'The :attribute must be greater than or equal :value kilobytes.', 56 | 'string' => 'The :attribute must be greater than or equal :value characters.', 57 | 'array' => 'The :attribute must have :value items or more.', 58 | ], 59 | 'image' => 'The :attribute must be an image.', 60 | 'in' => 'The selected :attribute is invalid.', 61 | 'in_array' => 'The :attribute field does not exist in :other.', 62 | 'integer' => 'The :attribute must be an integer.', 63 | 'ip' => 'The :attribute must be a valid IP address.', 64 | 'ipv4' => 'The :attribute must be a valid IPv4 address.', 65 | 'ipv6' => 'The :attribute must be a valid IPv6 address.', 66 | 'json' => 'The :attribute must be a valid JSON string.', 67 | 'lt' => [ 68 | 'numeric' => 'The :attribute must be less than :value.', 69 | 'file' => 'The :attribute must be less than :value kilobytes.', 70 | 'string' => 'The :attribute must be less than :value characters.', 71 | 'array' => 'The :attribute must have less than :value items.', 72 | ], 73 | 'lte' => [ 74 | 'numeric' => 'The :attribute must be less than or equal :value.', 75 | 'file' => 'The :attribute must be less than or equal :value kilobytes.', 76 | 'string' => 'The :attribute must be less than or equal :value characters.', 77 | 'array' => 'The :attribute must not have more than :value items.', 78 | ], 79 | 'max' => [ 80 | 'numeric' => 'The :attribute may not be greater than :max.', 81 | 'file' => 'The :attribute may not be greater than :max kilobytes.', 82 | 'string' => 'The :attribute may not be greater than :max characters.', 83 | 'array' => 'The :attribute may not have more than :max items.', 84 | ], 85 | 'mimes' => 'The :attribute must be a file of type: :values.', 86 | 'mimetypes' => 'The :attribute must be a file of type: :values.', 87 | 'min' => [ 88 | 'numeric' => 'The :attribute must be at least :min.', 89 | 'file' => 'The :attribute must be at least :min kilobytes.', 90 | 'string' => 'The :attribute must be at least :min characters.', 91 | 'array' => 'The :attribute must have at least :min items.', 92 | ], 93 | 'multiple_of' => 'The :attribute must be a multiple of :value.', 94 | 'not_in' => 'The selected :attribute is invalid.', 95 | 'not_regex' => 'The :attribute format is invalid.', 96 | 'numeric' => 'The :attribute must be a number.', 97 | 'password' => 'The password is incorrect.', 98 | 'present' => 'The :attribute field must be present.', 99 | 'regex' => 'The :attribute format is invalid.', 100 | 'required' => 'The :attribute field is required.', 101 | 'required_if' => 'The :attribute field is required when :other is :value.', 102 | 'required_unless' => 'The :attribute field is required unless :other is in :values.', 103 | 'required_with' => 'The :attribute field is required when :values is present.', 104 | 'required_with_all' => 'The :attribute field is required when :values are present.', 105 | 'required_without' => 'The :attribute field is required when :values is not present.', 106 | 'required_without_all' => 'The :attribute field is required when none of :values are present.', 107 | 'same' => 'The :attribute and :other must match.', 108 | 'size' => [ 109 | 'numeric' => 'The :attribute must be :size.', 110 | 'file' => 'The :attribute must be :size kilobytes.', 111 | 'string' => 'The :attribute must be :size characters.', 112 | 'array' => 'The :attribute must contain :size items.', 113 | ], 114 | 'starts_with' => 'The :attribute must start with one of the following: :values.', 115 | 'string' => 'The :attribute must be a string.', 116 | 'timezone' => 'The :attribute must be a valid zone.', 117 | 'unique' => 'The :attribute has already been taken.', 118 | 'uploaded' => 'The :attribute failed to upload.', 119 | 'url' => 'The :attribute format is invalid.', 120 | 'uuid' => 'The :attribute must be a valid UUID.', 121 | 122 | /* 123 | |-------------------------------------------------------------------------- 124 | | Custom Validation Language Lines 125 | |-------------------------------------------------------------------------- 126 | | 127 | | Here you may specify custom validation messages for attributes using the 128 | | convention "attribute.rule" to name the lines. This makes it quick to 129 | | specify a specific custom language line for a given attribute rule. 130 | | 131 | */ 132 | 133 | 'custom' => [ 134 | 'attribute-name' => [ 135 | 'rule-name' => 'custom-message', 136 | ], 137 | ], 138 | 139 | /* 140 | |-------------------------------------------------------------------------- 141 | | Custom Validation Attributes 142 | |-------------------------------------------------------------------------- 143 | | 144 | | The following language lines are used to swap our attribute placeholder 145 | | with something more reader friendly such as "E-Mail Address" instead 146 | | of "email". This simply helps us make our message more expressive. 147 | | 148 | */ 149 | 150 | 'attributes' => [], 151 | 152 | ]; 153 | -------------------------------------------------------------------------------- /resources/sass/_vcloak.scss: -------------------------------------------------------------------------------- 1 | [v-cloak] .v-cloak--block { 2 | display: block; 3 | } 4 | [v-cloak] .v-cloak--inline { 5 | display: inline; 6 | } 7 | [v-cloak] .v-cloak--inlineBlock { 8 | display: inline-block; 9 | } 10 | [v-cloak] .v-cloak--hidden { 11 | display: none; 12 | } 13 | [v-cloak] .v-cloak--invisible { 14 | visibility: hidden; 15 | } 16 | .v-cloak--block, 17 | .v-cloak--inline, 18 | .v-cloak--inlineBlock { 19 | display: none; 20 | } 21 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | @import "vcloak"; 2 | -------------------------------------------------------------------------------- /resources/views/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | @if (env('APP_ENV')!='Production') 10 | @routes 11 | @endif 12 | 13 | 14 | 15 | @inertia 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('home'); 10 | 11 | Route::get('login', [LoginController::class, 'showLoginForm'])->name('login'); 12 | Route::post('login', [LoginController::class, 'login'])->name('login.attempt'); 13 | Route::get('logout', [LoginController::class, 'showLogoutForm'])->name('logout')->middleware('auth'); 14 | Route::post('logout', [LoginController::class, 'logout'])->name('logout.attempt')->middleware('auth'); 15 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/Feature/HomePageTest.php: -------------------------------------------------------------------------------- 1 | get(route('home')); 18 | $response->assertHasProp('auth'); 19 | $response->assertHasProp('app'); 20 | $response->assertHasProp('flash'); 21 | $response->assertHasProp('errors'); 22 | } 23 | 24 | public function test_using_inertia_testing_package() 25 | { 26 | 27 | $response = $this->get(route('home')); 28 | $response->assertInertia(fn(Assert $page) => 29 | $page->hasAll([ 30 | 'app', 31 | 'auth', 32 | 'flash', 33 | 'errors', 34 | ])); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | original->getData()['page']['props']), JSON_OBJECT_AS_ARRAY); 20 | 21 | if ($key) { 22 | return Arr::get($props, $key); 23 | } 24 | 25 | return $props; 26 | }); 27 | 28 | TestResponse::macro('assertHasProp', function ($key) { 29 | Assert::assertTrue(Arr::has($this->props(), $key)); 30 | 31 | return $this; 32 | }); 33 | 34 | TestResponse::macro('assertPropValue', function ($key, $value) { 35 | $this->assertHasProp($key); 36 | 37 | if (is_callable($value)) { 38 | $value($this->props($key)); 39 | } else { 40 | Assert::assertEquals($this->props($key), $value); 41 | } 42 | 43 | return $this; 44 | }); 45 | 46 | TestResponse::macro('assertPropCount', function ($key, $count) { 47 | $this->assertHasProp($key); 48 | 49 | Assert::assertCount($count, $this->props($key)); 50 | 51 | return $this; 52 | }); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require("laravel-mix"); 2 | const path = require("path"); 3 | const VuetifyLoaderPlugin = require("vuetify-loader/lib/plugin"); 4 | 5 | mix.js("resources/js/app.js", "public/js") 6 | .sass("resources/sass/app.scss", "public/css"); 7 | 8 | if (mix.inProduction()) { 9 | mix.webpackConfig({ 10 | output: { chunkFilename: "js/[name].js?id=[chunkhash]" }, 11 | resolve: { 12 | alias: { 13 | vue$: "vue/dist/vue.runtime.esm.js", 14 | "@": path.resolve("resources/js"), 15 | ziggy: path.resolve('vendor/tightenco/ziggy/dist'), 16 | }, 17 | }, 18 | plugins: [new VuetifyLoaderPlugin()], 19 | }) 20 | .version() 21 | .sourceMaps(); 22 | }else{ 23 | mix.webpackConfig({ 24 | output: { chunkFilename: "js/[name].js?id=[chunkhash]" }, 25 | resolve: { 26 | alias: { 27 | vue$: "vue/dist/vue.runtime.esm.js", 28 | "@": path.resolve("resources/js"), 29 | }, 30 | }, 31 | plugins: [new VuetifyLoaderPlugin()], 32 | }) 33 | .sourceMaps(); 34 | } 35 | --------------------------------------------------------------------------------