teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

bootstrapの追記

2021/05/17 08:14

投稿

itigo0216
itigo0216

スコア16

title CHANGED
File without changes
body CHANGED
@@ -55,7 +55,39 @@
55
55
  ご教授いただければ幸いです。
56
56
 
57
57
  追記
58
- ```
58
+ ```app
59
59
  require('./bootstrap');
60
60
 
61
+ ```
62
+
63
+ ```bootstrap
64
+ window._ = require('lodash');
65
+
66
+ /**
67
+ * We'll load the axios HTTP library which allows us to easily issue requests
68
+ * to our Laravel back-end. This library automatically handles sending the
69
+ * CSRF token as a header based on the value of the "XSRF" token cookie.
70
+ */
71
+
72
+ window.axios = require('axios');
73
+
74
+ window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
75
+
76
+ /**
77
+ * Echo exposes an expressive API for subscribing to channels and listening
78
+ * for events that are broadcast by Laravel. Echo and event broadcasting
79
+ * allows your team to easily build robust real-time web applications.
80
+ */
81
+
82
+ // import Echo from 'laravel-echo';
83
+
84
+ // window.Pusher = require('pusher-js');
85
+
86
+ // window.Echo = new Echo({
87
+ // broadcaster: 'pusher',
88
+ // key: process.env.MIX_PUSHER_APP_KEY,
89
+ // cluster: process.env.MIX_PUSHER_APP_CLUSTER,
90
+ // forceTLS: true
91
+ // });
92
+
61
93
  ```

1

app.jsのソースの追加

2021/05/17 08:14

投稿

itigo0216
itigo0216

スコア16

title CHANGED
File without changes
body CHANGED
@@ -52,4 +52,10 @@
52
52
  と表示されています。
53
53
 
54
54
  jQueryが機能していないみたいなのですが何故でしょうか?
55
- ご教授いただければ幸いです。
55
+ ご教授いただければ幸いです。
56
+
57
+ 追記
58
+ ```
59
+ require('./bootstrap');
60
+
61
+ ```