質問編集履歴
1
プログラムの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,6 +37,64 @@
|
|
37
37
|
|
38
38
|
```
|
39
39
|
|
40
|
+
・index.php(npmで自動生成されたもの)
|
41
|
+
```php
|
42
|
+
<?php
|
43
|
+
|
44
|
+
use Illuminate\Contracts\Http\Kernel;
|
45
|
+
use Illuminate\Http\Request;
|
46
|
+
|
47
|
+
define('LARAVEL_START', microtime(true));
|
48
|
+
|
49
|
+
/*
|
50
|
+
|--------------------------------------------------------------------------
|
51
|
+
| Check If The Application Is Under Maintenance
|
52
|
+
|--------------------------------------------------------------------------
|
53
|
+
|
|
54
|
+
| If the application is in maintenance / demo mode via the "down" command
|
55
|
+
| we will load this file so that any pre-rendered content can be shown
|
56
|
+
| instead of starting the framework, which could cause an exception.
|
57
|
+
|
|
58
|
+
*/
|
59
|
+
|
60
|
+
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
|
61
|
+
require $maintenance;
|
62
|
+
}
|
63
|
+
|
64
|
+
/*
|
65
|
+
|--------------------------------------------------------------------------
|
66
|
+
| Register The Auto Loader
|
67
|
+
|--------------------------------------------------------------------------
|
68
|
+
|
|
69
|
+
| Composer provides a convenient, automatically generated class loader for
|
70
|
+
| this application. We just need to utilize it! We'll simply require it
|
71
|
+
| into the script here so we don't need to manually load our classes.
|
72
|
+
|
|
73
|
+
*/
|
74
|
+
|
75
|
+
require __DIR__.'/../vendor/autoload.php';
|
76
|
+
|
77
|
+
/*
|
78
|
+
|--------------------------------------------------------------------------
|
79
|
+
| Run The Application
|
80
|
+
|--------------------------------------------------------------------------
|
81
|
+
|
|
82
|
+
| Once we have the application, we can handle the incoming request using
|
83
|
+
| the application's HTTP kernel. Then, we will send the response back
|
84
|
+
| to this client's browser, allowing them to enjoy our application.
|
85
|
+
|
|
86
|
+
*/
|
87
|
+
|
88
|
+
$app = require_once __DIR__.'/../bootstrap/app.php';
|
89
|
+
|
90
|
+
$kernel = $app->make(Kernel::class);
|
91
|
+
|
92
|
+
$response = $kernel->handle(
|
93
|
+
$request = Request::capture()
|
94
|
+
)->send();
|
95
|
+
|
96
|
+
$kernel->terminate($request, $response);
|
97
|
+
```
|
40
98
|
### 試したこと
|
41
99
|
|
42
100
|
・[Vue.js(vue-cli)にて外部jsライブラリを読み込みたかった…(雑記)](https://kbn1053.hatenablog.com/entry/2018/04/21/001651)
|