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

質問編集履歴

2

\.envのところにdatabase\.phpを貼り付けていたので修正

2017/08/18 10:50

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -25,91 +25,46 @@
25
25
  ackage [PACKAGE]] [--pretend] [--seed]
26
26
  ```
27
27
 
28
- database.php
28
+ .env
29
29
  ```
30
+ APP_NAME=Laravel
31
+ APP_ENV=local
30
- 'default' => env('DB_CONNECTION', 'mysql'),
32
+ APP_KEY=base64:eqUQ0WTmJWsutQBJhYPQ7CqxsY6pukKXmLMQ0U+oYIo=
33
+ APP_DEBUG=true
34
+ APP_LOG_LEVEL=debug
35
+ APP_URL=http://localhost
31
36
 
32
- /*
37
+ DB_CONNECTION=sqlite
33
- |--------------------------------------------------------------------------
34
- | Database Connections
38
+ DB_HOST=localhost
35
- |--------------------------------------------------------------------------
36
- |
37
- | Here are each of the database connections setup for your application.
38
- | Of course, examples of configuring each database platform that is
39
+ DB_PORT=3306
39
- | supported by Laravel is shown below to make development simple.
40
+ DB_DATABASE=mysql
41
+ DB_USERNAME=pma
40
- |
42
+ DB_PASSWORD=
41
- |
42
- | All database work in Laravel is done through the PHP PDO facilities
43
+ DB_SOCKET=/Applications/XAMMP/xammpfiles/var/mysql/mysql.sock
43
- | so make sure you have the driver for your particular database of
44
- | choice installed on your machine before you begin development.
45
- |
46
- */
47
44
 
48
- 'connections' => [
45
+ BROADCAST_DRIVER=log
46
+ CACHE_DRIVER=file
47
+ SESSION_DRIVER=file
48
+ QUEUE_DRIVER=sync
49
49
 
50
- 'sqlite' => [
50
+ REDIS_HOST=127.0.0.1
51
- 'driver' => 'sqlite',
52
- 'database' => storage_path('database.sqlite'),
53
- 'prefix' => '',
51
+ REDIS_PASSWORD=null
54
- ],
52
+ REDIS_PORT=6379
55
53
 
54
+ MAIL_DRIVER=smtp
56
- 'mysql' => [
55
+ MAIL_HOST=smtp.mailtrap.io
56
+ MAIL_PORT=2525
57
+ MAIL_USERNAME=null
58
+ MAIL_PASSWORD=null
57
- 'driver' => 'mysql',
59
+ MAIL_ENCRYPTION=null
58
60
 
59
- 'host' => env('DB_HOST', 'localhost'),
60
- 'port' => env('DB_PORT', '3306'),
61
- 'database' => env('DB_DATABASE', 'mysql'),
62
- 'username' => env('DB_USERNAME', 'pma'),
63
- 'password' => env('DB_PASSWORD', ''),
64
- 'unix_socket' => env('DB_SOCKET', null),
65
- 'charset' => 'utf8mb4',
66
- 'collation' => 'utf8mb4_unicode_ci',
67
- 'prefix' => '',
61
+ PUSHER_APP_ID=
68
- 'strict' => false,
62
+ PUSHER_APP_KEY=
69
- 'engine' => null,
63
+ PUSHER_APP_SECRET=
70
- ],
71
64
 
72
- 'pgsql' => [
73
- 'driver' => 'pgsql',
74
- 'host' => env('DB_HOST', 'localhost'),
75
- 'port' => env('DB_PORT', '5432'),
76
- 'database' => env('DB_DATABASE', 'mysql'),
77
- 'username' => env('DB_USERNAME', 'pma'),
78
- 'password' => env('DB_PASSWORD', ''),
79
- 'charset' => 'utf8',
80
- 'prefix' => '',
81
- 'schema' => 'public',
82
- 'sslmode' => 'prefer',
83
- ],
84
-
85
- 'sqlsrv' => [
86
- 'driver' => 'sqlsrv',
87
- 'host' => env('DB_HOST', 'localhost'),
88
- 'port' => env('DB_PORT', '1433'),
89
- 'database' => env('DB_DATABASE', 'forge'),
90
- 'username' => env('DB_USERNAME', 'forge'),
91
- 'password' => env('DB_PASSWORD', ''),
92
- 'charset' => 'utf8',
93
- 'prefix' => '',
94
- ],
95
-
96
- ],
97
-
98
- /*
99
- |--------------------------------------------------------------------------
100
- | Migration Repository Table
101
- |--------------------------------------------------------------------------
102
- |
103
- | This table keeps track of all the migrations that have already run for
104
- | your application. Using this information, we can determine which of
105
- | the migrations on disk haven't actually been run in the database.
106
- |
107
- */
108
-
109
- 'migrations' => 'migrations',
110
65
  ```
111
66
 
112
- .env
67
+ database.php
113
68
  ```
114
69
  'default' => env('DB_CONNECTION', 'mysql'),
115
70
 

1

参考サイトURL追記

2017/08/18 10:50

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,3 +1,5 @@
1
+ https://laravel10.wordpress.com/2015/02/25/%E5%88%9D%E3%82%81%E3%81%A6%E3%81%AElaravel-5-6-%E3%83%9E%E3%82%A4%E3%82%B0%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7db%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%AE%A1/
2
+ こちらのサイトを参考にLaravelの学習をしています。
1
3
  前回の質問に関することは自己解決できました。
2
4
  ですが今度は下記のmigrateを実行した際にタイトルのエラーが出ました。
3
5
  .envもdatabase.phpも前回の質問で書き換えてあるのに