質問編集履歴

2

追記

2019/06/20 00:37

投稿

rude_rockers
rude_rockers

スコア32

test CHANGED
File without changes
test CHANGED
@@ -249,3 +249,279 @@
249
249
  ちょっと途方に暮れております・・・
250
250
 
251
251
  どなたかアドバイスお願いします。
252
+
253
+
254
+
255
+ 追記
256
+
257
+ config/database.php
258
+
259
+ ```ここに言語を入力
260
+
261
+ <?php
262
+
263
+
264
+
265
+ return [
266
+
267
+
268
+
269
+ /*
270
+
271
+ |--------------------------------------------------------------------------
272
+
273
+ | Default Database Connection Name
274
+
275
+ |--------------------------------------------------------------------------
276
+
277
+ |
278
+
279
+ | Here you may specify which of the database connections below you wish
280
+
281
+ | to use as your default connection for all database work. Of course
282
+
283
+ | you may use many connections at once using the Database library.
284
+
285
+ |
286
+
287
+ */
288
+
289
+
290
+
291
+ 'default' => env('DB_CONNECTION', 'mysql'),
292
+
293
+
294
+
295
+ /*
296
+
297
+ |--------------------------------------------------------------------------
298
+
299
+ | Database Connections
300
+
301
+ |--------------------------------------------------------------------------
302
+
303
+ |
304
+
305
+ | Here are each of the database connections setup for your application.
306
+
307
+ | Of course, examples of configuring each database platform that is
308
+
309
+ | supported by Laravel is shown below to make development simple.
310
+
311
+ |
312
+
313
+ |
314
+
315
+ | All database work in Laravel is done through the PHP PDO facilities
316
+
317
+ | so make sure you have the driver for your particular database of
318
+
319
+ | choice installed on your machine before you begin development.
320
+
321
+ |
322
+
323
+ */
324
+
325
+
326
+
327
+ 'connections' => [
328
+
329
+
330
+
331
+ 'sqlite' => [
332
+
333
+ 'driver' => 'sqlite',
334
+
335
+ 'database' => env('DB_DATABASE', database_path('database.sqlite')),
336
+
337
+ 'prefix' => '',
338
+
339
+ 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
340
+
341
+ ],
342
+
343
+
344
+
345
+ 'mysql' => [
346
+
347
+ 'driver' => 'mysql',
348
+
349
+ 'host' => env('DB_HOST', '127.0.0.1'),
350
+
351
+ 'port' => env('DB_PORT', '3306'),
352
+
353
+ 'database' => env('DB_DATABASE', 'forge'),
354
+
355
+ 'username' => env('DB_USERNAME', 'forge'),
356
+
357
+ 'password' => env('DB_PASSWORD', ''),
358
+
359
+ 'unix_socket' => env('DB_SOCKET', ''),
360
+
361
+ 'charset' => 'utf8mb4',
362
+
363
+ 'collation' => 'utf8mb4_unicode_ci',
364
+
365
+ 'prefix' => '',
366
+
367
+ 'prefix_indexes' => true,
368
+
369
+ 'strict' => true,
370
+
371
+ 'engine' => null,
372
+
373
+ 'unix_socket' => '/tmp/mysql.sock'
374
+
375
+ ],
376
+
377
+
378
+
379
+ 'pgsql' => [
380
+
381
+ 'driver' => 'pgsql',
382
+
383
+ 'host' => env('DB_HOST', '127.0.0.1'),
384
+
385
+ 'port' => env('DB_PORT', '5432'),
386
+
387
+ 'database' => env('DB_DATABASE', 'forge'),
388
+
389
+ 'username' => env('DB_USERNAME', 'forge'),
390
+
391
+ 'password' => env('DB_PASSWORD', ''),
392
+
393
+ 'charset' => 'utf8',
394
+
395
+ 'prefix' => '',
396
+
397
+ 'prefix_indexes' => true,
398
+
399
+ 'schema' => 'public',
400
+
401
+ 'sslmode' => 'prefer',
402
+
403
+ ],
404
+
405
+
406
+
407
+ 'sqlsrv' => [
408
+
409
+ 'driver' => 'sqlsrv',
410
+
411
+ 'host' => env('DB_HOST', 'localhost'),
412
+
413
+ 'port' => env('DB_PORT', '1433'),
414
+
415
+ 'database' => env('DB_DATABASE', 'forge'),
416
+
417
+ 'username' => env('DB_USERNAME', 'forge'),
418
+
419
+ 'password' => env('DB_PASSWORD', ''),
420
+
421
+ 'charset' => 'utf8',
422
+
423
+ 'prefix' => '',
424
+
425
+ 'prefix_indexes' => true,
426
+
427
+ ],
428
+
429
+
430
+
431
+ ],
432
+
433
+
434
+
435
+ /*
436
+
437
+ |--------------------------------------------------------------------------
438
+
439
+ | Migration Repository Table
440
+
441
+ |--------------------------------------------------------------------------
442
+
443
+ |
444
+
445
+ | This table keeps track of all the migrations that have already run for
446
+
447
+ | your application. Using this information, we can determine which of
448
+
449
+ | the migrations on disk haven't actually been run in the database.
450
+
451
+ |
452
+
453
+ */
454
+
455
+
456
+
457
+ 'migrations' => 'migrations',
458
+
459
+
460
+
461
+ /*
462
+
463
+ |--------------------------------------------------------------------------
464
+
465
+ | Redis Databases
466
+
467
+ |--------------------------------------------------------------------------
468
+
469
+ |
470
+
471
+ | Redis is an open source, fast, and advanced key-value store that also
472
+
473
+ | provides a richer body of commands than a typical key-value system
474
+
475
+ | such as APC or Memcached. Laravel makes it easy to dig right in.
476
+
477
+ |
478
+
479
+ */
480
+
481
+
482
+
483
+ 'redis' => [
484
+
485
+
486
+
487
+ 'client' => 'predis',
488
+
489
+
490
+
491
+ 'default' => [
492
+
493
+ 'host' => env('REDIS_HOST', '127.0.0.1'),
494
+
495
+ 'password' => env('REDIS_PASSWORD', null),
496
+
497
+ 'port' => env('REDIS_PORT', 6379),
498
+
499
+ 'database' => env('REDIS_DB', 0),
500
+
501
+ ],
502
+
503
+
504
+
505
+ 'cache' => [
506
+
507
+ 'host' => env('REDIS_HOST', '127.0.0.1'),
508
+
509
+ 'password' => env('REDIS_PASSWORD', null),
510
+
511
+ 'port' => env('REDIS_PORT', 6379),
512
+
513
+ 'database' => env('REDIS_CACHE_DB', 1),
514
+
515
+ ],
516
+
517
+
518
+
519
+ ],
520
+
521
+
522
+
523
+ ];
524
+
525
+
526
+
527
+ ```

1

追記

2019/06/20 00:37

投稿

rude_rockers
rude_rockers

スコア32

test CHANGED
File without changes
test CHANGED
@@ -126,6 +126,28 @@
126
126
 
127
127
  ```
128
128
 
129
+
130
+
131
+ そしてデータベースを作成します。
132
+
133
+ ```ここに言語を入力
134
+
135
+ mysql -u root -p
136
+
137
+ ```
138
+
139
+ ```ここに言語を入力
140
+
141
+ create database homestead;
142
+
143
+ Query OK, 1 row affected (0.00 sec)
144
+
145
+ ```
146
+
147
+
148
+
149
+
150
+
129
151
  ここまでは順調です。
130
152
 
131
153
  ```ここに言語を入力
@@ -170,6 +192,14 @@
170
192
 
171
193
 
172
194
 
195
+ 現在ブラウザ上で画面は写っております。
196
+
197
+ クリックしても動きます。
198
+
199
+ 用意したデータベースが空なので、やはりphp artisan migrateが出来ておりません。
200
+
201
+
202
+
173
203
  ```ここに言語を入力
174
204
 
175
205
  php artisan config:cache