質問編集履歴

3

追記

2020/04/11 10:41

投稿

popc
popc

スコア34

test CHANGED
File without changes
test CHANGED
@@ -181,3 +181,91 @@
181
181
  他に必要な情報があれば追記いたします。
182
182
 
183
183
  何卒よろしくお願いいたします。
184
+
185
+
186
+
187
+
188
+
189
+ #追記
190
+
191
+
192
+
193
+ storage/logs/laravel.log
194
+
195
+
196
+
197
+ 500エラーを表示させたあと、エラーが出ていました。
198
+
199
+ エラーの行数が多くて、ここが更新されていることに気づいていませんでした・・・。
200
+
201
+
202
+
203
+ ```ここに言語を入力
204
+
205
+ [2020-04-11 15:20:58] local.ERROR: Declaration of Carbon\Translator::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Declaration of Carbon\Translator::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) at /home/vagrant/hoge/vendor/nesbot/carbon/src/Carbon/Translator.php:18)
206
+
207
+ [stacktrace]
208
+
209
+ #0 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(143): Symfony\Component\ErrorHandler\Error\FatalError->__construct()
210
+
211
+ #1 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(130): Illuminate\Foundation\Bootstrap\HandleExceptions->fatalErrorFromPhpError()
212
+
213
+ #2 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(0): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
214
+
215
+ #3 /home/vagrant/hoge/vendor/composer/ClassLoader.php(444): ()
216
+
217
+ #4 /home/vagrant/hoge/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
218
+
219
+ #5 /home/vagrant/hoge/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php(113): Composer\Autoload\ClassLoader->loadClass()
220
+
221
+ #6 /home/vagrant/hoge/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php(113): spl_autoload_call()
222
+
223
+ #7 /home/vagrant/hoge/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php(718): Carbon\Carbon::translator()
224
+
225
+ #8 /home/vagrant/hoge/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php(494): Carbon\Carbon::getLocaleAwareTranslator()
226
+
227
+ #9 /home/vagrant/hoge/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php(40): Carbon\Carbon::setLocale()
228
+
229
+ #10 /home/vagrant/hoge/vendor/nesbot/carbon/src/Carbon/Laravel/ServiceProvider.php(20): Carbon\Laravel\ServiceProvider->updateLocale()
230
+
231
+ #11 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): Carbon\Laravel\ServiceProvider->boot()
232
+
233
+ #12 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array:{/home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32}()
234
+
235
+ #13 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/Util.php(36): Illuminate\Container\BoundMethod::Illuminate\Container\{closure:/home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:30-34}()
236
+
237
+ #14 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\Util::unwrapIfClosure()
238
+
239
+ #15 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod()
240
+
241
+ #16 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Container/Container.php(592): Illuminate\Container\BoundMethod::call()
242
+
243
+ #17 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(865): Illuminate\Foundation\Application->call()
244
+
245
+ #18 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(848): Illuminate\Foundation\Application->bootProvider()
246
+
247
+ #19 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(849): Illuminate\Foundation\Application->Illuminate\Foundation\{closure:/home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:847-849}()
248
+
249
+ #20 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(849): array_walk()
250
+
251
+ #21 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
252
+
253
+ #22 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(228): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
254
+
255
+ #23 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Foundation\Application->bootstrapWith()
256
+
257
+ #24 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(135): App\Http\Kernel->bootstrap()
258
+
259
+ #25 /home/vagrant/hoge/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(109): App\Http\Kernel->sendRequestThroughRouter()
260
+
261
+ #26 /home/vagrant/hoge/public/index.php(55): App\Http\Kernel->handle()
262
+
263
+ #27 /home/vagrant/hoge/public/index.php(0): {main}()
264
+
265
+ #28 {main}
266
+
267
+ "}
268
+
269
+
270
+
271
+ ```

2

補足追加

2020/04/11 10:41

投稿

popc
popc

スコア34

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,12 @@
1
1
  #やりたいこと・困っていること
2
2
 
3
+ vagrant+homesteadでlaravelを動かそうとしていますが、
4
+
3
- vagranthomesteadlaravel動かそうとしいますが、laravelのWelcomeのデモ画面が500エラーで表示されません。
5
+ npm run watchでローカルサーバー立ち上げ、laravelのWelcomeのデモ画面が500エラーで表示されません。
6
+
7
+ hoge.testでWelcome画面を表示させたいです。
8
+
9
+
4
10
 
5
11
 
6
12
 
@@ -81,6 +87,14 @@
81
87
  ##public/index.html をおいてみる
82
88
 
83
89
  hoge.testで表示されました。
90
+
91
+
92
+
93
+ ##php artisan serve
94
+
95
+ http://127.0.0.1:8000/
96
+
97
+ で、Welcomeの画面が表示されました。
84
98
 
85
99
 
86
100
 

1

エラー→結果

2020/04/11 04:15

投稿

popc
popc

スコア34

test CHANGED
File without changes
test CHANGED
@@ -120,7 +120,7 @@
120
120
 
121
121
 
122
122
 
123
- エラー
123
+ 結果
124
124
 
125
125
  chcon: failed to get security context of 'services.php': Operation not supported
126
126