create-v-kit-spa 0.10.1 β†’ 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +21 -9
  2. package/dist/messages.d.ts.map +1 -1
  3. package/dist/messages.js +3 -1
  4. package/dist/prompts.d.ts.map +1 -1
  5. package/dist/prompts.js +8 -4
  6. package/lib/159/.editorconfig +18 -0
  7. package/lib/159/.env.example +52 -0
  8. package/lib/159/.gitattributes +10 -0
  9. package/lib/159/.styleci.yml +14 -0
  10. package/lib/159/README.md +190 -0
  11. package/lib/159/RG-README.md +175 -0
  12. package/lib/159/app/Console/Kernel.php +32 -0
  13. package/lib/159/app/Exceptions/Handler.php +41 -0
  14. package/lib/159/app/Http/Controllers/Controller.php +13 -0
  15. package/lib/159/app/Http/Controllers/MainController.php +12 -0
  16. package/lib/159/app/Http/Kernel.php +67 -0
  17. package/lib/159/app/Http/Middleware/Authenticate.php +21 -0
  18. package/lib/159/app/Http/Middleware/EncryptCookies.php +17 -0
  19. package/lib/159/app/Http/Middleware/PreventRequestsDuringMaintenance.php +17 -0
  20. package/lib/159/app/Http/Middleware/RedirectIfAuthenticated.php +32 -0
  21. package/lib/159/app/Http/Middleware/TrimStrings.php +19 -0
  22. package/lib/159/app/Http/Middleware/TrustHosts.php +20 -0
  23. package/lib/159/app/Http/Middleware/TrustProxies.php +28 -0
  24. package/lib/159/app/Http/Middleware/VerifyCsrfToken.php +17 -0
  25. package/lib/159/app/Models/User.php +44 -0
  26. package/lib/159/app/Providers/AppServiceProvider.php +28 -0
  27. package/lib/159/app/Providers/AuthServiceProvider.php +30 -0
  28. package/lib/159/app/Providers/BroadcastServiceProvider.php +21 -0
  29. package/lib/159/app/Providers/EventServiceProvider.php +32 -0
  30. package/lib/159/app/Providers/RouteServiceProvider.php +63 -0
  31. package/lib/159/artisan +53 -0
  32. package/lib/159/bootstrap/app.php +55 -0
  33. package/lib/159/bootstrap/cache/.gitignore +2 -0
  34. package/lib/159/composer.json +62 -0
  35. package/lib/159/config/app.php +235 -0
  36. package/lib/159/config/auth.php +111 -0
  37. package/lib/159/config/broadcasting.php +64 -0
  38. package/lib/159/config/cache.php +110 -0
  39. package/lib/159/config/cors.php +34 -0
  40. package/lib/159/config/database.php +147 -0
  41. package/lib/159/config/filesystems.php +73 -0
  42. package/lib/159/config/hashing.php +52 -0
  43. package/lib/159/config/logging.php +118 -0
  44. package/lib/159/config/mail.php +118 -0
  45. package/lib/159/config/queue.php +93 -0
  46. package/lib/159/config/sanctum.php +65 -0
  47. package/lib/159/config/services.php +33 -0
  48. package/lib/159/config/session.php +201 -0
  49. package/lib/159/config/view.php +36 -0
  50. package/lib/159/database/factories/UserFactory.php +39 -0
  51. package/lib/159/database/migrations/2014_10_12_000000_create_users_table.php +36 -0
  52. package/lib/159/database/migrations/2014_10_12_100000_create_password_resets_table.php +32 -0
  53. package/lib/159/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +36 -0
  54. package/lib/159/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +36 -0
  55. package/lib/159/database/seeders/DatabaseSeeder.php +18 -0
  56. package/lib/159/package.json +28 -0
  57. package/lib/159/phpunit.xml +31 -0
  58. package/lib/159/public/.htaccess +21 -0
  59. package/lib/159/public/css/app.css +1 -0
  60. package/lib/159/public/fonts/vendor/@mdi/materialdesignicons-webfont.eot +0 -0
  61. package/lib/159/public/fonts/vendor/@mdi/materialdesignicons-webfont.ttf +0 -0
  62. package/lib/159/public/fonts/vendor/@mdi/materialdesignicons-webfont.woff +0 -0
  63. package/lib/159/public/fonts/vendor/@mdi/materialdesignicons-webfont.woff2 +0 -0
  64. package/lib/159/public/index.php +55 -0
  65. package/lib/159/public/js/app.js +81066 -0
  66. package/lib/159/public/js/resources_js_components_pages_About_vue.js +62 -0
  67. package/lib/159/public/js/resources_js_components_pages_Error_vue.js +62 -0
  68. package/lib/159/public/js/resources_js_components_pages_Home_vue.js +143 -0
  69. package/lib/159/public/mix-manifest.json +4 -0
  70. package/lib/159/public/robots.txt +2 -0
  71. package/lib/159/resources/css/app.css +0 -0
  72. package/lib/159/resources/js/app.js +37 -0
  73. package/lib/159/resources/js/bootstrap.js +28 -0
  74. package/lib/159/resources/js/components/pages/About.vue +5 -0
  75. package/lib/159/resources/js/components/pages/Error.vue +5 -0
  76. package/lib/159/resources/js/components/pages/Home.vue +21 -0
  77. package/lib/159/resources/js/components/templates/App.vue +86 -0
  78. package/lib/159/resources/js/mainStore.js +20 -0
  79. package/lib/159/resources/js/router.js +41 -0
  80. package/lib/159/resources/lang/en/auth.php +20 -0
  81. package/lib/159/resources/lang/en/pagination.php +19 -0
  82. package/lib/159/resources/lang/en/passwords.php +22 -0
  83. package/lib/159/resources/lang/en/validation.php +163 -0
  84. package/lib/159/resources/views/layouts/app.blade.php +14 -0
  85. package/lib/159/resources/views/welcome.blade.php +132 -0
  86. package/lib/159/routes/api.php +19 -0
  87. package/lib/159/routes/channels.php +18 -0
  88. package/lib/159/routes/console.php +19 -0
  89. package/lib/159/routes/web.php +20 -0
  90. package/lib/159/server.php +21 -0
  91. package/lib/159/storage/app/.gitignore +3 -0
  92. package/lib/159/storage/app/public/.gitignore +2 -0
  93. package/lib/159/storage/framework/cache/.gitignore +3 -0
  94. package/lib/159/storage/framework/cache/data/.gitignore +2 -0
  95. package/lib/159/storage/framework/sessions/.gitignore +2 -0
  96. package/lib/159/storage/framework/testing/.gitignore +2 -0
  97. package/lib/159/storage/framework/views/.gitignore +2 -0
  98. package/lib/159/storage/logs/.gitignore +2 -0
  99. package/lib/159/tests/CreatesApplication.php +22 -0
  100. package/lib/159/tests/Feature/ExampleTest.php +21 -0
  101. package/lib/159/tests/TestCase.php +10 -0
  102. package/lib/159/tests/Unit/ExampleTest.php +18 -0
  103. package/lib/159/webpack.mix.js +18 -0
  104. package/package.json +1 -1
  105. /package/lib/159/{Still Under Development Thank you.txt β†’ public/favicon.ico} +0 -0
package/README.md CHANGED
@@ -65,7 +65,7 @@ https://windows.php.net/downloads/releases/archives/php-8.0.9-Win32-vs16-x64.zip
65
65
  | Version & Type | Structure | Features | Prerequisite |
66
66
  | :------------------------ | :------------| :---------------------------------------------------------------------| :-----------------|
67
67
  | `vue 2 - laravel 8` | `Monorepo` | runs in `webpack` w/ the following: `pinia/vuex`, `vuetify 2`, `vue-router` | php `v7.4` && node `^18x` |
68
- | `vue 3 - laravel 8` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router` |php `v7.4` && node `^18x` |
68
+ | `vue 3 - laravel 8` | `Monorepo` | runs in `webpack` w/ the following: `pinia`, `vuetify 3`, `vue-router` |php `v7.4` && node `^18x` |
69
69
  | `vue 3 - laravel 9` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` |php `v8.0` && node `^18x` |
70
70
  | `vue 3 - laravel 10` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` | php `v8.1` && node `v18^` |
71
71
  | `vue 3 - laravel 11` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` | php `v8.2^` && node `v18^` |
@@ -73,11 +73,11 @@ https://windows.php.net/downloads/releases/archives/php-8.0.9-Win32-vs16-x64.zip
73
73
  ```
74
74
  /
75
75
  └── Project folder/
76
- β”œβ”€β”€ *The rest of the files*
76
+ β”œβ”€β”€ *Laravel and Vue files are combined here*
77
77
  └── README.md
78
78
  ```
79
79
 
80
- ### Decoupled Repo
80
+ <!-- ### Decoupled Repo
81
81
  > frontend and backend are separated, much easier to update/upgrade either if needed.
82
82
 
83
83
  | Version & Type | Structure | Features | Prerequisite |
@@ -90,7 +90,7 @@ https://windows.php.net/downloads/releases/archives/php-8.0.9-Win32-vs16-x64.zip
90
90
  β”‚ └── Vuejs files
91
91
  └── Backend/
92
92
  └── Laravel files
93
- ```
93
+ ``` -->
94
94
  <br>
95
95
 
96
96
  # Installation
@@ -111,6 +111,20 @@ https://windows.php.net/downloads/releases/archives/php-8.0.9-Win32-vs16-x64.zip
111
111
  | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
112
112
  <br>
113
113
 
114
+ ## Vue 3 - Laravel 8
115
+
116
+ > bundled and optimized in `webpack` πŸ•ΈοΈ
117
+
118
+ | Commands | Action |
119
+ | :------------------------ | :--------------------------------------------|
120
+ | `yarn install` | Installs node dependencies |
121
+ | `composer install` | Installs composer dependencies |
122
+ | `copy .env.example .env` | Generates a .env file from an example |
123
+ | `php artisan key:generate`| Generates a key for .env file |
124
+ | `npm run artisan-watch` | Run both `php artisan serve` and `yarn watch`|
125
+ | `http://127.0.0.1:8081/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
126
+ <br>
127
+
114
128
  ## Vue 3 - Laravel 9
115
129
 
116
130
  > bundled and optimized in `vite` ⚑
@@ -160,16 +174,14 @@ Read full docs [here](https://github.com/Shuashuaa/v-kit-spa#readme).
160
174
  ## How to contribute
161
175
  Have an idea? Found a bug? See [how to contribute](https://github.com/Shuashuaa/v-kit-spa/wiki/Contributing).
162
176
 
163
- <!--## Contributors
177
+ ## Contributors
164
178
  Thanks to:
165
179
  - [RGie](https://github.com/vrlara)
166
-
167
- > To learn on how to contribute, check the [Contributing](./CONTRIBUTING.md).
168
- <br>
180
+ <!-- <br>
169
181
 
170
182
  ## Changelog
171
183
  To learn about the specific changes in each release, check the [Changelog](./Changelog).
172
184
  <br> -->
173
185
 
174
186
  ## License
175
- [MIT](./LICENSE) License &copy; 2024-PRESENT [Shuashuaa](https://github.com/Shuashuaa)
187
+ Free and Open Source Under [MIT](./LICENSE) License &copy; 2024-PRESENT [Shuashuaa](https://github.com/Shuashuaa)
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAEA,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,iBAoCrD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,QAExC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAEA,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,iBAsCrD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,QAExC"}
package/dist/messages.js CHANGED
@@ -47,14 +47,16 @@ function successMessage(sourceVal) {
47
47
  console.log(chalk_1.default.cyanBright.bold(" Β  Β  O Β  Β  Β * Β  Β  Β  Β ' Β  Β  Β  .\n"));
48
48
  }, 300);
49
49
  setTimeout(() => {
50
- console.log('Well done πŸŽ‰πŸŽ‰,', chalk_1.default.green('A Boilerplates is created with coffee & passion by', chalk_1.default.green.bold.underline('Shuashuaa'), chalk_1.default.whiteBright('\nFor more info: >>'), chalk_1.default.green.underline('https://github.com/Shuashuaa/v-kit-spa\n')));
50
+ console.log('Well done πŸŽ‰πŸŽ‰,', chalk_1.default.green('These Boilerplates are created with coffee & passion by', chalk_1.default.green.bold.underline('Shuashuaa'), chalk_1.default.whiteBright('\nFor more info: >>'), chalk_1.default.green.underline('https://github.com/Shuashuaa/v-kit-spa\n')));
51
51
  }, 800);
52
52
  setTimeout(() => {
53
53
  if (sourceVal == "158" || sourceVal == "159") {
54
+ console.log(chalk_1.default.bgBlack('Locate Project:'), chalk_1.default.cyanBright('cd project_name,'));
54
55
  console.log(chalk_1.default.bgBlack('Install Dependencies:'), chalk_1.default.cyanBright('npm install') + ',', chalk_1.default.cyanBright('composer install') + ',', chalk_1.default.cyanBright('\ncopy .env.example .env'), 'and', chalk_1.default.cyanBright('php artisan key:generate'));
55
56
  console.log(chalk_1.default.bgBlack('Run Project:'), chalk_1.default.cyanBright('npm run artisan-watch') + '.\n');
56
57
  }
57
58
  else if (sourceVal == "160" || sourceVal == "161" || sourceVal == "162") {
59
+ console.log(chalk_1.default.bgBlack('Locate Project:'), chalk_1.default.cyanBright('cd project_name,'));
58
60
  console.log(chalk_1.default.bgBlack('Install Dependencies:'), chalk_1.default.cyanBright('yarn install') + ',', chalk_1.default.cyanBright('composer install') + ',', chalk_1.default.cyanBright('\ncopy .env.example .env'), 'and', chalk_1.default.cyanBright('php artisan key:generate'));
59
61
  console.log(chalk_1.default.bgBlack('Run Project:'), chalk_1.default.cyanBright('npm run artisan-dev') + '.\n');
60
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAQA,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAYtD;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAe5D;AAGD,wBAAgB,aAAa,SAE5B"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAQA,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAYtD;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAmB5D;AAGD,wBAAgB,aAAa,SAE5B"}
package/dist/prompts.js CHANGED
@@ -38,10 +38,14 @@ function getBoilerplateChoice() {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
39
  return new Promise((resolve) => {
40
40
  let message = `\n${chalk_1.default.bold.cyan('?')} ${chalk_1.default.bold('Select your preferred boilerplate:')}\n`;
41
- message += `\nMonoRepo: Decoupled:\n`;
42
- message += `[1] - ${chalk_1.default.bold.underline('Vue2-Laravel8')} [6] - ${chalk_1.default.bold.underline.gray('Vue2-Laravel8')} ${chalk_1.default.gray.dim.italic('(on-going..)')}\n`;
43
- message += `[2] - ${chalk_1.default.bold.underline.gray('Vue3-Laravel8')} ${chalk_1.default.gray.dim.italic('(on-going..)')} [7] - ${chalk_1.default.bold.underline.gray('Vue3-Laravel8')} ${chalk_1.default.gray.dim.italic('(on-going..)')}\n`;
44
- message += `[3] - ${chalk_1.default.bold.underline('Vue3-Laravel9')} [8] - ${chalk_1.default.bold.underline.gray('Vue3-Laravel9')} ${chalk_1.default.gray.dim.italic('(on-going..)')}\n`;
41
+ // message += `\nMonoRepo:\n`;
42
+ // Decoupled:\n`;
43
+ message += `\n[1] - ${chalk_1.default.bold.underline('Vue2-Laravel8')}\n`;
44
+ // [6] - ${chalk.bold.underline.gray('Vue2-Laravel8')} ${chalk.gray.dim.italic('(on-going..)')};
45
+ message += `[2] - ${chalk_1.default.bold.underline('Vue3-Laravel8')}\n`;
46
+ // [7] - ${chalk.bold.underline.gray('Vue3-Laravel8')} ${chalk.gray.dim.italic('(on-going..)')}\n`;
47
+ message += `[3] - ${chalk_1.default.bold.underline('Vue3-Laravel9')}\n`;
48
+ // [8] - ${chalk.bold.underline.gray('Vue3-Laravel9')} ${chalk.gray.dim.italic('(on-going..)')}\n`;
45
49
  message += `[4] - ${chalk_1.default.bold.underline('Vue3-Laravel10')}\n`;
46
50
  message += `[5] - ${chalk_1.default.bold.underline('Vue3-Laravel11')}\n`;
47
51
  message += '=> ';
@@ -0,0 +1,18 @@
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
+
17
+ [docker-compose.yml]
18
+ indent_size = 4
@@ -0,0 +1,52 @@
1
+ APP_NAME=Laravel
2
+ APP_ENV=local
3
+ APP_KEY=
4
+ APP_DEBUG=true
5
+ APP_URL=http://localhost
6
+
7
+ LOG_CHANNEL=stack
8
+ LOG_DEPRECATIONS_CHANNEL=null
9
+ LOG_LEVEL=debug
10
+
11
+ DB_CONNECTION=mysql
12
+ DB_HOST=127.0.0.1
13
+ DB_PORT=3306
14
+ DB_DATABASE=laravel
15
+ DB_USERNAME=root
16
+ DB_PASSWORD=
17
+
18
+ BROADCAST_DRIVER=log
19
+ CACHE_DRIVER=file
20
+ FILESYSTEM_DRIVER=local
21
+ QUEUE_CONNECTION=sync
22
+ SESSION_DRIVER=file
23
+ SESSION_LIFETIME=120
24
+
25
+ MEMCACHED_HOST=127.0.0.1
26
+
27
+ REDIS_HOST=127.0.0.1
28
+ REDIS_PASSWORD=null
29
+ REDIS_PORT=6379
30
+
31
+ MAIL_MAILER=smtp
32
+ MAIL_HOST=mailhog
33
+ MAIL_PORT=1025
34
+ MAIL_USERNAME=null
35
+ MAIL_PASSWORD=null
36
+ MAIL_ENCRYPTION=null
37
+ MAIL_FROM_ADDRESS=null
38
+ MAIL_FROM_NAME="${APP_NAME}"
39
+
40
+ AWS_ACCESS_KEY_ID=
41
+ AWS_SECRET_ACCESS_KEY=
42
+ AWS_DEFAULT_REGION=us-east-1
43
+ AWS_BUCKET=
44
+ AWS_USE_PATH_STYLE_ENDPOINT=false
45
+
46
+ PUSHER_APP_ID=
47
+ PUSHER_APP_KEY=
48
+ PUSHER_APP_SECRET=
49
+ PUSHER_APP_CLUSTER=mt1
50
+
51
+ MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
52
+ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
@@ -0,0 +1,10 @@
1
+ * text=auto
2
+
3
+ *.blade.php diff=html
4
+ *.css diff=css
5
+ *.html diff=html
6
+ *.md diff=markdown
7
+ *.php diff=php
8
+
9
+ /.github export-ignore
10
+ CHANGELOG.md export-ignore
@@ -0,0 +1,14 @@
1
+ php:
2
+ preset: laravel
3
+ version: 8
4
+ disabled:
5
+ - no_unused_imports
6
+ finder:
7
+ not-name:
8
+ - index.php
9
+ - server.php
10
+ js:
11
+ finder:
12
+ not-name:
13
+ - webpack.mix.js
14
+ css: true
@@ -0,0 +1,190 @@
1
+ <br>
2
+ SAMPLE LANG TO
3
+ <p align="center">
4
+ <img src="https://github.com/Shuashuaa/v-kit/blob/main/@shuashuaa-v-kit.png" width="300" />
5
+ </p>
6
+
7
+ <h1 align="center">create-v-kit-spa</h1>
8
+
9
+ <p align="center">
10
+ A simple way to start your vue-laravel-spa projects.
11
+ <!-- A collection of vue-laravel-spa boilerplates Powered by vue, laravel, <br>
12
+ vite/webpack, vuetify and pinia. up-to-date, ready for local-deployment and fully customizable. -->
13
+ <!-- Looking for a boilerplate for your next project? Kickstart it with v-kit-spa now! -->
14
+ </p>
15
+
16
+ <p align="center">
17
+ <!-- https://shields.io/badges/npm-package-minimized-gzipped-size-scoped -->
18
+ <!-- https://simpleicons.org/ -->
19
+ <!-- <a href="https://www.npmjs.com/package/create-v-kit-spa"><img src="https://img.shields.io/npm/v/create-v-kit-spa?color=c95f8b&amp;label=" alt="NPM version"></a>
20
+ <a href="https://www.npmjs.com/package/create-v-kit-spa"><img src="https://img.shields.io/npm/dw/create-v-kit-spa?style=flat-square" alt="NPM downloads"></a>
21
+ <a href="https://github.com/shuashuaa/v-kit/blob/main/LICENSE"><img src="https://img.shields.io/npm/v/create-v-kit-spa?style=flat-square" alt="License"></a> -->
22
+ <a href="https://github.com/shuashuaa/v-kit/blob/main/LICENSE"><img src="https://img.shields.io/npm/v/create-v-kit-spa?style=flat-square&logo=npm&color=ffe963" alt="VERSION"></a>
23
+ <a href="https://www.npmjs.com/package/create-v-kit-spa"><img src="https://img.shields.io/npm/dw/create-v-kit-spa?style=flat-square&logo=npm&color=ffe963" alt="NPM DOWNLOADS"></a>
24
+ <a href="https://github.com/shuashuaa/v-kit/blob/main/LICENSE"><img src="https://img.shields.io/bundlejs/size/create-v-kit-spa?style=flat-square&logo=npm&color=ffe963" alt="MINIFIED SIZE"></a>
25
+ <!-- 007EC6 -->
26
+ </p>
27
+ <!-- [![npm](https://img.shields.io/npm/v/@shuashuaa/vkit?color=c95f8b&amp;label=)](https://www.npmjs.com/package/vkit)
28
+ [![npm](https://img.shields.io/npm/dw/@shuashuaa/vkit?style=flat-square)](https://www.npmjs.com/package/vkit)
29
+ [![GitHub](https://img.shields.io/github/license/shuashuaa/v-kit?style=flat-square)](https://github.com/shuashuaa/v-kit/blob/main/LICENSE) -->
30
+ <br>
31
+
32
+ ## Create your project
33
+
34
+ ```sh
35
+ npm create v-kit-spa@latest
36
+ ```
37
+ <br>
38
+
39
+ ## Prerequisite
40
+
41
+ - `Apache/Nginx`
42
+ - `Mysql`
43
+ - `Php`
44
+ - `Node`
45
+
46
+ <!-- > Php to Laravel Version Table
47
+
48
+ | Php Version | Laravel Version |
49
+ | :-------------- | :------------------|
50
+ | `7.4` | `^8.0x` |
51
+ | `8.0` | `^9.0x` |
52
+ | `8.1` | `^10.0x` |
53
+ | `8.2` | `^11.0x` | -->
54
+
55
+ <!-- Download PHP Versions
56
+ https://windows.php.net/downloads/releases/archives/php-8.0.9-Win32-vs16-x64.zip -->
57
+
58
+ <br>
59
+
60
+ # Reference Table (❗ PHP Version is Important ❗)
61
+
62
+ ### Mono Repo
63
+ > frontend and backend are united via configuration made it an sfa, easier to deploy but migrating or upgrading either frontend or backend is tricky-hard.
64
+
65
+ | Version & Type | Structure | Features | Prerequisite |
66
+ | :------------------------ | :------------| :---------------------------------------------------------------------| :-----------------|
67
+ | `vue 2 - laravel 8` | `Monorepo` | runs in `webpack` w/ the following: `pinia/vuex`, `vuetify 2`, `vue-router` | php `v7.4` && node `^18x` |
68
+ | `vue 3 - laravel 8` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router` |php `v7.4` && node `^18x` |
69
+ | `vue 3 - laravel 9` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` |php `v8.0` && node `^18x` |
70
+ | `vue 3 - laravel 10` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` | php `v8.1` && node `v18^` |
71
+ | `vue 3 - laravel 11` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` | php `v8.2^` && node `v18^` |
72
+
73
+ ```
74
+ /
75
+ └── Project folder/
76
+ β”œβ”€β”€ *The rest of the files*
77
+ └── README.md
78
+ ```
79
+
80
+ ### Decoupled Repo
81
+ > frontend and backend are separated, much easier to update/upgrade either if needed.
82
+
83
+ | Version & Type | Structure | Features | Prerequisite |
84
+ | :------------------------ | :------------| :---------------------------------------------------------------------| :-----------------|
85
+ | `vue 3 - laravel 8` | `Decoupled` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` |php `v7.4` && node `^18x` |
86
+
87
+ ```
88
+ /
89
+ β”œβ”€β”€ FrontEnd/
90
+ β”‚ └── Vuejs files
91
+ └── Backend/
92
+ └── Laravel files
93
+ ```
94
+ <br>
95
+
96
+ # Installation
97
+
98
+ <!-- [![cli-frames](http://i.imgur.com/RjY2kCn.gif)](#) -->
99
+
100
+ ## Vue 2 - Laravel 8
101
+
102
+ > bundled and optimized in `webpack` πŸ•ΈοΈ
103
+
104
+ | Commands | Action |
105
+ | :-------------------------- | :--------------------------------------------|
106
+ | `yarn install` | Installs node dependencies |
107
+ | `composer install` | Installs composer dependencies |
108
+ | `copy .env.example .env` | Generates a .env file from an example |
109
+ | `php artisan key:generate` | Generates a key for .env file |
110
+ | `npm run artisan-watch` | Run both `php artisan serve` and `yarn watch`|
111
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
112
+ <br>
113
+
114
+ ## Vue 3 - Laravel 8
115
+
116
+ > bundled and optimized in `webpack` ⚑
117
+
118
+ | Commands | Action |
119
+ | :------------------------ | :--------------------------------------------|
120
+ | `yarn install` | Installs node dependencies |
121
+ | `composer install` | Installs composer dependencies |
122
+ | `copy .env.example .env` | Generates a .env file from an example |
123
+ | `php artisan key:generate`| Generates a key for .env file |
124
+ | `npm run artisan-watch` | Run both `php artisan serve` and `yarn watch`|
125
+ | `http://127.0.0.1:8081/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
126
+ <br>
127
+
128
+
129
+ ## Vue 3 - Laravel 9
130
+
131
+ > bundled and optimized in `vite` ⚑
132
+
133
+ | Commands | Action |
134
+ | :------------------------ | :--------------------------------------------|
135
+ | `yarn install` | Installs node dependencies |
136
+ | `composer install` | Installs composer dependencies |
137
+ | `copy .env.example .env` | Generates a .env file from an example |
138
+ | `php artisan key:generate`| Generates a key for .env file |
139
+ | `npm run artisan-dev` | Run both `php artisan serve` and `yarn dev` |
140
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
141
+ <br>
142
+
143
+ ## Vue 3 - Laravel 10
144
+
145
+ > bundled and optimized in `vite` ⚑
146
+
147
+ | Commands | Action |
148
+ | :------------------------ | :--------------------------------------------|
149
+ | `yarn install` | Installs node dependencies |
150
+ | `composer install` | Installs composer dependencies |
151
+ | `copy .env.example .env` | Generates a .env file from an example |
152
+ | `php artisan key:generate`| Generates a key for .env file |
153
+ | `npm run artisan-dev` | Run both `php artisan serve` and `yarn dev` |
154
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
155
+ <br>
156
+
157
+ ## Vue 3 - Laravel 11
158
+
159
+ > bundled and optimized in `vite` ⚑
160
+
161
+ | Commands | Action |
162
+ | :------------------------ | :--------------------------------------------|
163
+ | `yarn install` | Installs node dependencies |
164
+ | `composer install` | Installs composer dependencies |
165
+ | `copy .env.example .env` | Generates a .env file from an example |
166
+ | `php artisan key:generate`| Generates a key for .env file |
167
+ | `php artisan migrate` | Create a Sessions table |
168
+ | `npm run artisan-dev` | Run both `php artisan serve` and `yarn dev` |
169
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
170
+ <br>
171
+
172
+ ## Docs
173
+ Read full docs [here](https://github.com/Shuashuaa/v-kit-spa#readme).
174
+
175
+ ## How to contribute
176
+ Have an idea? Found a bug? See [how to contribute](https://github.com/Shuashuaa/v-kit-spa/wiki/Contributing).
177
+
178
+ <!--## Contributors
179
+ Thanks to:
180
+ - [RGie](https://github.com/vrlara)
181
+
182
+ > To learn on how to contribute, check the [Contributing](./CONTRIBUTING.md).
183
+ <br>
184
+
185
+ ## Changelog
186
+ To learn about the specific changes in each release, check the [Changelog](./Changelog).
187
+ <br> -->
188
+
189
+ ## License
190
+ [MIT](./LICENSE) License &copy; 2024-PRESENT [Shuashuaa](https://github.com/Shuashuaa)
@@ -0,0 +1,175 @@
1
+ <br>
2
+ SAMPLE LANG TO
3
+ <p align="center">
4
+ <img src="https://github.com/Shuashuaa/v-kit/blob/main/@shuashuaa-v-kit.png" width="300" />
5
+ </p>
6
+
7
+ <h1 align="center">create-v-kit-spa</h1>
8
+
9
+ <p align="center">
10
+ A simple way to start your vue-laravel-spa projects.
11
+ <!-- A collection of vue-laravel-spa boilerplates Powered by vue, laravel, <br>
12
+ vite/webpack, vuetify and pinia. up-to-date, ready for local-deployment and fully customizable. -->
13
+ <!-- Looking for a boilerplate for your next project? Kickstart it with v-kit-spa now! -->
14
+ </p>
15
+
16
+ <p align="center">
17
+ <!-- https://shields.io/badges/npm-package-minimized-gzipped-size-scoped -->
18
+ <!-- https://simpleicons.org/ -->
19
+ <!-- <a href="https://www.npmjs.com/package/create-v-kit-spa"><img src="https://img.shields.io/npm/v/create-v-kit-spa?color=c95f8b&amp;label=" alt="NPM version"></a>
20
+ <a href="https://www.npmjs.com/package/create-v-kit-spa"><img src="https://img.shields.io/npm/dw/create-v-kit-spa?style=flat-square" alt="NPM downloads"></a>
21
+ <a href="https://github.com/shuashuaa/v-kit/blob/main/LICENSE"><img src="https://img.shields.io/npm/v/create-v-kit-spa?style=flat-square" alt="License"></a> -->
22
+ <a href="https://github.com/shuashuaa/v-kit/blob/main/LICENSE"><img src="https://img.shields.io/npm/v/create-v-kit-spa?style=flat-square&logo=npm&color=ffe963" alt="VERSION"></a>
23
+ <a href="https://www.npmjs.com/package/create-v-kit-spa"><img src="https://img.shields.io/npm/dw/create-v-kit-spa?style=flat-square&logo=npm&color=ffe963" alt="NPM DOWNLOADS"></a>
24
+ <a href="https://github.com/shuashuaa/v-kit/blob/main/LICENSE"><img src="https://img.shields.io/bundlejs/size/create-v-kit-spa?style=flat-square&logo=npm&color=ffe963" alt="MINIFIED SIZE"></a>
25
+ <!-- 007EC6 -->
26
+ </p>
27
+ <!-- [![npm](https://img.shields.io/npm/v/@shuashuaa/vkit?color=c95f8b&amp;label=)](https://www.npmjs.com/package/vkit)
28
+ [![npm](https://img.shields.io/npm/dw/@shuashuaa/vkit?style=flat-square)](https://www.npmjs.com/package/vkit)
29
+ [![GitHub](https://img.shields.io/github/license/shuashuaa/v-kit?style=flat-square)](https://github.com/shuashuaa/v-kit/blob/main/LICENSE) -->
30
+ <br>
31
+
32
+ ## Create your project
33
+
34
+ ```sh
35
+ npm create v-kit-spa@latest
36
+ ```
37
+ <br>
38
+
39
+ ## Prerequisite
40
+
41
+ - `Apache/Nginx`
42
+ - `Mysql`
43
+ - `Php`
44
+ - `Node`
45
+
46
+ <!-- > Php to Laravel Version Table
47
+
48
+ | Php Version | Laravel Version |
49
+ | :-------------- | :------------------|
50
+ | `7.4` | `^8.0x` |
51
+ | `8.0` | `^9.0x` |
52
+ | `8.1` | `^10.0x` |
53
+ | `8.2` | `^11.0x` | -->
54
+
55
+ <!-- Download PHP Versions
56
+ https://windows.php.net/downloads/releases/archives/php-8.0.9-Win32-vs16-x64.zip -->
57
+
58
+ <br>
59
+
60
+ # Reference Table (❗ PHP Version is Important ❗)
61
+
62
+ ### Mono Repo
63
+ > frontend and backend are united via configuration made it an sfa, easier to deploy but migrating or upgrading either frontend or backend is tricky-hard.
64
+
65
+ | Version & Type | Structure | Features | Prerequisite |
66
+ | :------------------------ | :------------| :---------------------------------------------------------------------| :-----------------|
67
+ | `vue 2 - laravel 8` | `Monorepo` | runs in `webpack` w/ the following: `pinia/vuex`, `vuetify 2`, `vue-router` | php `v7.4` && node `^18x` |
68
+ | `vue 3 - laravel 8` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router` |php `v7.4` && node `^18x` |
69
+ | `vue 3 - laravel 9` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` |php `v8.0` && node `^18x` |
70
+ | `vue 3 - laravel 10` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` | php `v8.1` && node `v18^` |
71
+ | `vue 3 - laravel 11` | `Monorepo` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` | php `v8.2^` && node `v18^` |
72
+
73
+ ```
74
+ /
75
+ └── Project folder/
76
+ β”œβ”€β”€ *The rest of the files*
77
+ └── README.md
78
+ ```
79
+
80
+ ### Decoupled Repo
81
+ > frontend and backend are separated, much easier to update/upgrade either if needed.
82
+
83
+ | Version & Type | Structure | Features | Prerequisite |
84
+ | :------------------------ | :------------| :---------------------------------------------------------------------| :-----------------|
85
+ | `vue 3 - laravel 8` | `Decoupled` | runs in `vite` w/ the following: `pinia`, `vuetify 3`, `vue-router`, `developer friendly` |php `v7.4` && node `^18x` |
86
+
87
+ ```
88
+ /
89
+ β”œβ”€β”€ FrontEnd/
90
+ β”‚ └── Vuejs files
91
+ └── Backend/
92
+ └── Laravel files
93
+ ```
94
+ <br>
95
+
96
+ # Installation
97
+
98
+ <!-- [![cli-frames](http://i.imgur.com/RjY2kCn.gif)](#) -->
99
+
100
+ ## Vue 2 - Laravel 8
101
+
102
+ > bundled and optimized in `webpack` πŸ•ΈοΈ
103
+
104
+ | Commands | Action |
105
+ | :-------------------------- | :--------------------------------------------|
106
+ | `yarn install` | Installs node dependencies |
107
+ | `composer install` | Installs composer dependencies |
108
+ | `copy .env.example .env` | Generates a .env file from an example |
109
+ | `php artisan key:generate` | Generates a key for .env file |
110
+ | `npm run artisan-watch` | Run both `php artisan serve` and `yarn watch`|
111
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
112
+ <br>
113
+
114
+ ## Vue 3 - Laravel 9
115
+
116
+ > bundled and optimized in `vite` ⚑
117
+
118
+ | Commands | Action |
119
+ | :------------------------ | :--------------------------------------------|
120
+ | `yarn install` | Installs node dependencies |
121
+ | `composer install` | Installs composer dependencies |
122
+ | `copy .env.example .env` | Generates a .env file from an example |
123
+ | `php artisan key:generate`| Generates a key for .env file |
124
+ | `npm run artisan-dev` | Run both `php artisan serve` and `yarn dev` |
125
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
126
+ <br>
127
+
128
+ ## Vue 3 - Laravel 10
129
+
130
+ > bundled and optimized in `vite` ⚑
131
+
132
+ | Commands | Action |
133
+ | :------------------------ | :--------------------------------------------|
134
+ | `yarn install` | Installs node dependencies |
135
+ | `composer install` | Installs composer dependencies |
136
+ | `copy .env.example .env` | Generates a .env file from an example |
137
+ | `php artisan key:generate`| Generates a key for .env file |
138
+ | `npm run artisan-dev` | Run both `php artisan serve` and `yarn dev` |
139
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
140
+ <br>
141
+
142
+ ## Vue 3 - Laravel 11
143
+
144
+ > bundled and optimized in `vite` ⚑
145
+
146
+ | Commands | Action |
147
+ | :------------------------ | :--------------------------------------------|
148
+ | `yarn install` | Installs node dependencies |
149
+ | `composer install` | Installs composer dependencies |
150
+ | `copy .env.example .env` | Generates a .env file from an example |
151
+ | `php artisan key:generate`| Generates a key for .env file |
152
+ | `php artisan migrate` | Create a Sessions table |
153
+ | `npm run artisan-dev` | Run both `php artisan serve` and `yarn dev` |
154
+ | `http://127.0.0.1:8000/` | Visit your app, Enjoy! πŸŽ‰πŸŽ‰ |
155
+ <br>
156
+
157
+ ## Docs
158
+ Read full docs [here](https://github.com/Shuashuaa/v-kit-spa#readme).
159
+
160
+ ## How to contribute
161
+ Have an idea? Found a bug? See [how to contribute](https://github.com/Shuashuaa/v-kit-spa/wiki/Contributing).
162
+
163
+ <!--## Contributors
164
+ Thanks to:
165
+ - [RGie](https://github.com/vrlara)
166
+
167
+ > To learn on how to contribute, check the [Contributing](./CONTRIBUTING.md).
168
+ <br>
169
+
170
+ ## Changelog
171
+ To learn about the specific changes in each release, check the [Changelog](./Changelog).
172
+ <br> -->
173
+
174
+ ## License
175
+ [MIT](./LICENSE) License &copy; 2024-PRESENT [Shuashuaa](https://github.com/Shuashuaa)
@@ -0,0 +1,32 @@
1
+ <?php
2
+
3
+ namespace App\Console;
4
+
5
+ use Illuminate\Console\Scheduling\Schedule;
6
+ use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
+
8
+ class Kernel extends ConsoleKernel
9
+ {
10
+ /**
11
+ * Define the application's command schedule.
12
+ *
13
+ * @param \Illuminate\Console\Scheduling\Schedule $schedule
14
+ * @return void
15
+ */
16
+ protected function schedule(Schedule $schedule)
17
+ {
18
+ // $schedule->command('inspire')->hourly();
19
+ }
20
+
21
+ /**
22
+ * Register the commands for the application.
23
+ *
24
+ * @return void
25
+ */
26
+ protected function commands()
27
+ {
28
+ $this->load(__DIR__.'/Commands');
29
+
30
+ require base_path('routes/console.php');
31
+ }
32
+ }
@@ -0,0 +1,41 @@
1
+ <?php
2
+
3
+ namespace App\Exceptions;
4
+
5
+ use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6
+ use Throwable;
7
+
8
+ class Handler extends ExceptionHandler
9
+ {
10
+ /**
11
+ * A list of the exception types that are not reported.
12
+ *
13
+ * @var array<int, class-string<Throwable>>
14
+ */
15
+ protected $dontReport = [
16
+ //
17
+ ];
18
+
19
+ /**
20
+ * A list of the inputs that are never flashed for validation exceptions.
21
+ *
22
+ * @var array<int, string>
23
+ */
24
+ protected $dontFlash = [
25
+ 'current_password',
26
+ 'password',
27
+ 'password_confirmation',
28
+ ];
29
+
30
+ /**
31
+ * Register the exception handling callbacks for the application.
32
+ *
33
+ * @return void
34
+ */
35
+ public function register()
36
+ {
37
+ $this->reportable(function (Throwable $e) {
38
+ //
39
+ });
40
+ }
41
+ }