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
@@ -0,0 +1,33 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Third Party Services
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | This file is for storing the credentials for third party services such
11
+ | as Mailgun, Postmark, AWS and more. This file provides the de facto
12
+ | location for this type of information, allowing packages to have
13
+ | a conventional file to locate the various service credentials.
14
+ |
15
+ */
16
+
17
+ 'mailgun' => [
18
+ 'domain' => env('MAILGUN_DOMAIN'),
19
+ 'secret' => env('MAILGUN_SECRET'),
20
+ 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
21
+ ],
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
+ ];
@@ -0,0 +1,201 @@
1
+ <?php
2
+
3
+ use Illuminate\Support\Str;
4
+
5
+ return [
6
+
7
+ /*
8
+ |--------------------------------------------------------------------------
9
+ | Default Session Driver
10
+ |--------------------------------------------------------------------------
11
+ |
12
+ | This option controls the default session "driver" that will be used on
13
+ | requests. By default, we will use the lightweight native driver but
14
+ | you may specify any of the other wonderful drivers provided here.
15
+ |
16
+ | Supported: "file", "cookie", "database", "apc",
17
+ | "memcached", "redis", "dynamodb", "array"
18
+ |
19
+ */
20
+
21
+ 'driver' => env('SESSION_DRIVER', 'file'),
22
+
23
+ /*
24
+ |--------------------------------------------------------------------------
25
+ | Session Lifetime
26
+ |--------------------------------------------------------------------------
27
+ |
28
+ | Here you may specify the number of minutes that you wish the session
29
+ | to be allowed to remain idle before it expires. If you want them
30
+ | to immediately expire on the browser closing, set that option.
31
+ |
32
+ */
33
+
34
+ 'lifetime' => env('SESSION_LIFETIME', 120),
35
+
36
+ 'expire_on_close' => false,
37
+
38
+ /*
39
+ |--------------------------------------------------------------------------
40
+ | Session Encryption
41
+ |--------------------------------------------------------------------------
42
+ |
43
+ | This option allows you to easily specify that all of your session data
44
+ | should be encrypted before it is stored. All encryption will be run
45
+ | automatically by Laravel and you can use the Session like normal.
46
+ |
47
+ */
48
+
49
+ 'encrypt' => false,
50
+
51
+ /*
52
+ |--------------------------------------------------------------------------
53
+ | Session File Location
54
+ |--------------------------------------------------------------------------
55
+ |
56
+ | When using the native session driver, we need a location where session
57
+ | files may be stored. A default has been set for you but a different
58
+ | location may be specified. This is only needed for file sessions.
59
+ |
60
+ */
61
+
62
+ 'files' => storage_path('framework/sessions'),
63
+
64
+ /*
65
+ |--------------------------------------------------------------------------
66
+ | Session Database Connection
67
+ |--------------------------------------------------------------------------
68
+ |
69
+ | When using the "database" or "redis" session drivers, you may specify a
70
+ | connection that should be used to manage these sessions. This should
71
+ | correspond to a connection in your database configuration options.
72
+ |
73
+ */
74
+
75
+ 'connection' => env('SESSION_CONNECTION', 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 when it can't be done securely.
168
+ |
169
+ */
170
+
171
+ 'secure' => env('SESSION_SECURE_COOKIE'),
172
+
173
+ /*
174
+ |--------------------------------------------------------------------------
175
+ | HTTP Access Only
176
+ |--------------------------------------------------------------------------
177
+ |
178
+ | Setting this value to true will prevent JavaScript from accessing the
179
+ | value of the cookie and the cookie will only be accessible through
180
+ | the HTTP protocol. You are free to modify this option if needed.
181
+ |
182
+ */
183
+
184
+ 'http_only' => true,
185
+
186
+ /*
187
+ |--------------------------------------------------------------------------
188
+ | Same-Site Cookies
189
+ |--------------------------------------------------------------------------
190
+ |
191
+ | This option determines how your cookies behave when cross-site requests
192
+ | take place, and can be used to mitigate CSRF attacks. By default, we
193
+ | will set this value to "lax" since this is a secure default value.
194
+ |
195
+ | Supported: "lax", "strict", "none", null
196
+ |
197
+ */
198
+
199
+ 'same_site' => 'lax',
200
+
201
+ ];
@@ -0,0 +1,36 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | View Storage Paths
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | Most templating systems load templates from disk. Here you may specify
11
+ | an array of paths that should be checked for your views. Of course
12
+ | the usual Laravel view path has already been registered for you.
13
+ |
14
+ */
15
+
16
+ 'paths' => [
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
+ ];
@@ -0,0 +1,39 @@
1
+ <?php
2
+
3
+ namespace Database\Factories;
4
+
5
+ use Illuminate\Database\Eloquent\Factories\Factory;
6
+ use Illuminate\Support\Str;
7
+
8
+ class UserFactory extends Factory
9
+ {
10
+ /**
11
+ * Define the model's default state.
12
+ *
13
+ * @return array
14
+ */
15
+ public function definition()
16
+ {
17
+ return [
18
+ 'name' => $this->faker->name(),
19
+ 'email' => $this->faker->unique()->safeEmail(),
20
+ 'email_verified_at' => now(),
21
+ 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
22
+ 'remember_token' => Str::random(10),
23
+ ];
24
+ }
25
+
26
+ /**
27
+ * Indicate that the model's email address should be unverified.
28
+ *
29
+ * @return \Illuminate\Database\Eloquent\Factories\Factory
30
+ */
31
+ public function unverified()
32
+ {
33
+ return $this->state(function (array $attributes) {
34
+ return [
35
+ 'email_verified_at' => null,
36
+ ];
37
+ });
38
+ }
39
+ }
@@ -0,0 +1,36 @@
1
+ <?php
2
+
3
+ use Illuminate\Database\Migrations\Migration;
4
+ use Illuminate\Database\Schema\Blueprint;
5
+ use Illuminate\Support\Facades\Schema;
6
+
7
+ class CreateUsersTable extends Migration
8
+ {
9
+ /**
10
+ * Run the migrations.
11
+ *
12
+ * @return void
13
+ */
14
+ public function up()
15
+ {
16
+ Schema::create('users', function (Blueprint $table) {
17
+ $table->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
+ }
@@ -0,0 +1,32 @@
1
+ <?php
2
+
3
+ use Illuminate\Database\Migrations\Migration;
4
+ use Illuminate\Database\Schema\Blueprint;
5
+ use Illuminate\Support\Facades\Schema;
6
+
7
+ class CreatePasswordResetsTable extends Migration
8
+ {
9
+ /**
10
+ * Run the migrations.
11
+ *
12
+ * @return void
13
+ */
14
+ public function up()
15
+ {
16
+ Schema::create('password_resets', function (Blueprint $table) {
17
+ $table->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
+ }
@@ -0,0 +1,36 @@
1
+ <?php
2
+
3
+ use Illuminate\Database\Migrations\Migration;
4
+ use Illuminate\Database\Schema\Blueprint;
5
+ use Illuminate\Support\Facades\Schema;
6
+
7
+ class CreateFailedJobsTable extends Migration
8
+ {
9
+ /**
10
+ * Run the migrations.
11
+ *
12
+ * @return void
13
+ */
14
+ public function up()
15
+ {
16
+ Schema::create('failed_jobs', function (Blueprint $table) {
17
+ $table->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
+ }
@@ -0,0 +1,36 @@
1
+ <?php
2
+
3
+ use Illuminate\Database\Migrations\Migration;
4
+ use Illuminate\Database\Schema\Blueprint;
5
+ use Illuminate\Support\Facades\Schema;
6
+
7
+ class CreatePersonalAccessTokensTable extends Migration
8
+ {
9
+ /**
10
+ * Run the migrations.
11
+ *
12
+ * @return void
13
+ */
14
+ public function up()
15
+ {
16
+ Schema::create('personal_access_tokens', function (Blueprint $table) {
17
+ $table->id();
18
+ $table->morphs('tokenable');
19
+ $table->string('name');
20
+ $table->string('token', 64)->unique();
21
+ $table->text('abilities')->nullable();
22
+ $table->timestamp('last_used_at')->nullable();
23
+ $table->timestamps();
24
+ });
25
+ }
26
+
27
+ /**
28
+ * Reverse the migrations.
29
+ *
30
+ * @return void
31
+ */
32
+ public function down()
33
+ {
34
+ Schema::dropIfExists('personal_access_tokens');
35
+ }
36
+ }
@@ -0,0 +1,18 @@
1
+ <?php
2
+
3
+ namespace Database\Seeders;
4
+
5
+ use Illuminate\Database\Seeder;
6
+
7
+ class DatabaseSeeder extends Seeder
8
+ {
9
+ /**
10
+ * Seed the application's database.
11
+ *
12
+ * @return void
13
+ */
14
+ public function run()
15
+ {
16
+ // \App\Models\User::factory(10)->create();
17
+ }
18
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "private": true,
3
+ "scripts": {
4
+ "prod": "npm run production",
5
+ "artisan-watch": "concurrently \"php artisan serve --port 8081\" \"mix watch\""
6
+ },
7
+ "devDependencies": {
8
+ "axios": "^0.19",
9
+ "cross-env": "^7.0",
10
+ "laravel-mix": "^6.0.6",
11
+ "lodash": "^4.17.19",
12
+ "postcss-custom-properties": "^12.1.8",
13
+ "resolve-url-loader": "^3.1.0",
14
+ "concurrently": "^9.0.1"
15
+
16
+ },
17
+ "dependencies": {
18
+ "@mdi/font": "^6.5.95",
19
+ "@vue/compiler-sfc": "^3.3.8",
20
+ "pinia": "^2.1.7",
21
+ "vue": "^3.2.36",
22
+ "vue-loader": "^17.3.1",
23
+ "vue-router": "4",
24
+ "vue-template-compiler": "^2.6.14",
25
+ "vuetify": "3.1.13"
26
+
27
+ }
28
+ }
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
4
+ bootstrap="vendor/autoload.php"
5
+ colors="true"
6
+ >
7
+ <testsuites>
8
+ <testsuite name="Unit">
9
+ <directory suffix="Test.php">./tests/Unit</directory>
10
+ </testsuite>
11
+ <testsuite name="Feature">
12
+ <directory suffix="Test.php">./tests/Feature</directory>
13
+ </testsuite>
14
+ </testsuites>
15
+ <coverage processUncoveredFiles="true">
16
+ <include>
17
+ <directory suffix=".php">./app</directory>
18
+ </include>
19
+ </coverage>
20
+ <php>
21
+ <server name="APP_ENV" value="testing"/>
22
+ <server name="BCRYPT_ROUNDS" value="4"/>
23
+ <server name="CACHE_DRIVER" value="array"/>
24
+ <!-- <server name="DB_CONNECTION" value="sqlite"/> -->
25
+ <!-- <server name="DB_DATABASE" value=":memory:"/> -->
26
+ <server name="MAIL_MAILER" value="array"/>
27
+ <server name="QUEUE_CONNECTION" value="sync"/>
28
+ <server name="SESSION_DRIVER" value="array"/>
29
+ <server name="TELESCOPE_ENABLED" value="false"/>
30
+ </php>
31
+ </phpunit>
@@ -0,0 +1,21 @@
1
+ <IfModule mod_rewrite.c>
2
+ <IfModule mod_negotiation.c>
3
+ Options -MultiViews -Indexes
4
+ </IfModule>
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
+ </IfModule>
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,55 @@
1
+ <?php
2
+
3
+ use Illuminate\Contracts\Http\Kernel;
4
+ use Illuminate\Http\Request;
5
+
6
+ define('LARAVEL_START', microtime(true));
7
+
8
+ /*
9
+ |--------------------------------------------------------------------------
10
+ | Check If The Application Is Under Maintenance
11
+ |--------------------------------------------------------------------------
12
+ |
13
+ | If the application is in maintenance / demo mode via the "down" command
14
+ | we will load this file so that any pre-rendered content can be shown
15
+ | instead of starting the framework, which could cause an exception.
16
+ |
17
+ */
18
+
19
+ if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
20
+ require $maintenance;
21
+ }
22
+
23
+ /*
24
+ |--------------------------------------------------------------------------
25
+ | Register The Auto Loader
26
+ |--------------------------------------------------------------------------
27
+ |
28
+ | Composer provides a convenient, automatically generated class loader for
29
+ | this application. We just need to utilize it! We'll simply require it
30
+ | into the script here so we don't need to manually load our classes.
31
+ |
32
+ */
33
+
34
+ require __DIR__.'/../vendor/autoload.php';
35
+
36
+ /*
37
+ |--------------------------------------------------------------------------
38
+ | Run The Application
39
+ |--------------------------------------------------------------------------
40
+ |
41
+ | Once we have the application, we can handle the incoming request using
42
+ | the application's HTTP kernel. Then, we will send the response back
43
+ | to this client's browser, allowing them to enjoy our application.
44
+ |
45
+ */
46
+
47
+ $app = require_once __DIR__.'/../bootstrap/app.php';
48
+
49
+ $kernel = $app->make(Kernel::class);
50
+
51
+ $response = $kernel->handle(
52
+ $request = Request::capture()
53
+ )->send();
54
+
55
+ $kernel->terminate($request, $response);