質問編集履歴
2
bootstrapの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,10 +112,74 @@
|
|
112
112
|
|
113
113
|
追記
|
114
114
|
|
115
|
-
```
|
115
|
+
```app
|
116
116
|
|
117
117
|
require('./bootstrap');
|
118
118
|
|
119
119
|
|
120
120
|
|
121
121
|
```
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
```bootstrap
|
126
|
+
|
127
|
+
window._ = require('lodash');
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
/**
|
132
|
+
|
133
|
+
* We'll load the axios HTTP library which allows us to easily issue requests
|
134
|
+
|
135
|
+
* to our Laravel back-end. This library automatically handles sending the
|
136
|
+
|
137
|
+
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
138
|
+
|
139
|
+
*/
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
window.axios = require('axios');
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
/**
|
152
|
+
|
153
|
+
* Echo exposes an expressive API for subscribing to channels and listening
|
154
|
+
|
155
|
+
* for events that are broadcast by Laravel. Echo and event broadcasting
|
156
|
+
|
157
|
+
* allows your team to easily build robust real-time web applications.
|
158
|
+
|
159
|
+
*/
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
// import Echo from 'laravel-echo';
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
// window.Pusher = require('pusher-js');
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
// window.Echo = new Echo({
|
172
|
+
|
173
|
+
// broadcaster: 'pusher',
|
174
|
+
|
175
|
+
// key: process.env.MIX_PUSHER_APP_KEY,
|
176
|
+
|
177
|
+
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
178
|
+
|
179
|
+
// forceTLS: true
|
180
|
+
|
181
|
+
// });
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
```
|
1
app.jsのソースの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -107,3 +107,15 @@
|
|
107
107
|
jQueryが機能していないみたいなのですが何故でしょうか?
|
108
108
|
|
109
109
|
ご教授いただければ幸いです。
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
追記
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
require('./bootstrap');
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
```
|