質問編集履歴
2
コード追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -39,4 +39,98 @@ | |
| 39 39 |  | 
| 40 40 | 
             
            追記:エラーがDB not found となっていました。
         | 
| 41 41 | 
             
            DBがうまく参照できていないと思うのですが、
         | 
| 42 | 
            -
            どこが間違っているのでしょうか。
         | 
| 42 | 
            +
            どこが間違っているのでしょうか。
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            追記:
         | 
| 45 | 
            +
            .envファイルが以下です。
         | 
| 46 | 
            +
            ```
         | 
| 47 | 
            +
             | 
| 48 | 
            +
            APP_NAME=Laravel
         | 
| 49 | 
            +
            APP_ENV=local
         | 
| 50 | 
            +
            APP_KEY=base64:nsx1tvZ9XbNC0vrTKUDGPx9yjfEkXDbNIvJ4J4099VE=
         | 
| 51 | 
            +
            APP_DEBUG=true
         | 
| 52 | 
            +
            APP_URL=http://localhost
         | 
| 53 | 
            +
             | 
| 54 | 
            +
            LOG_CHANNEL=stack
         | 
| 55 | 
            +
             | 
| 56 | 
            +
            DB_CONNECTION=mysql
         | 
| 57 | 
            +
            DB_HOST=127.0.0.1
         | 
| 58 | 
            +
            DB_PORT=3306
         | 
| 59 | 
            +
            DB_DATABASE=test
         | 
| 60 | 
            +
            DB_USERNAME=root
         | 
| 61 | 
            +
            DB_PASSWORD=
         | 
| 62 | 
            +
             | 
| 63 | 
            +
            BROADCAST_DRIVER=log
         | 
| 64 | 
            +
            CACHE_DRIVER=file
         | 
| 65 | 
            +
            QUEUE_CONNECTION=sync
         | 
| 66 | 
            +
            SESSION_DRIVER=file
         | 
| 67 | 
            +
            SESSION_LIFETIME=120
         | 
| 68 | 
            +
             | 
| 69 | 
            +
            REDIS_HOST=127.0.0.1
         | 
| 70 | 
            +
            REDIS_PASSWORD=null
         | 
| 71 | 
            +
            REDIS_PORT=6379
         | 
| 72 | 
            +
             | 
| 73 | 
            +
            MAIL_MAILER=smtp
         | 
| 74 | 
            +
            MAIL_HOST=smtp.mailtrap.io
         | 
| 75 | 
            +
            MAIL_PORT=2525
         | 
| 76 | 
            +
            MAIL_USERNAME=86d34cd1b84fb9
         | 
| 77 | 
            +
            MAIL_PASSWORD=e8460bb5bf6f9c
         | 
| 78 | 
            +
            MAIL_ENCRYPTION=null
         | 
| 79 | 
            +
            MAIL_FROM_ADDRESS=from@example.com
         | 
| 80 | 
            +
            MAIL_FROM_NAME=Example
         | 
| 81 | 
            +
             | 
| 82 | 
            +
            AWS_ACCESS_KEY_ID=
         | 
| 83 | 
            +
            AWS_SECRET_ACCESS_KEY=
         | 
| 84 | 
            +
            AWS_DEFAULT_REGION=us-east-1
         | 
| 85 | 
            +
            AWS_BUCKET=
         | 
| 86 | 
            +
             | 
| 87 | 
            +
            PUSHER_APP_ID=
         | 
| 88 | 
            +
            PUSHER_APP_KEY=
         | 
| 89 | 
            +
            PUSHER_APP_SECRET=
         | 
| 90 | 
            +
            PUSHER_APP_CLUSTER=mt1
         | 
| 91 | 
            +
             | 
| 92 | 
            +
            MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
         | 
| 93 | 
            +
            MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
         | 
| 94 | 
            +
            ```
         | 
| 95 | 
            +
             | 
| 96 | 
            +
            migrationデイレクトリの2014_10_12_000000_create_users_table.php ファイルの記載が
         | 
| 97 | 
            +
            ```
         | 
| 98 | 
            +
             | 
| 99 | 
            +
            <?php
         | 
| 100 | 
            +
             | 
| 101 | 
            +
            use Illuminate\Database\Migrations\Migration;
         | 
| 102 | 
            +
            use Illuminate\Database\Schema\Blueprint;
         | 
| 103 | 
            +
            use Illuminate\Support\Facades\Schema;
         | 
| 104 | 
            +
             | 
| 105 | 
            +
            class CreateUsersTable extends Migration
         | 
| 106 | 
            +
            {
         | 
| 107 | 
            +
                /**
         | 
| 108 | 
            +
                 * Run the migrations.
         | 
| 109 | 
            +
                 *
         | 
| 110 | 
            +
                 * @return void
         | 
| 111 | 
            +
                 */
         | 
| 112 | 
            +
                public function up()
         | 
| 113 | 
            +
                {
         | 
| 114 | 
            +
                    Schema::create('users', function (Blueprint $table) {
         | 
| 115 | 
            +
                        $table->id();
         | 
| 116 | 
            +
                        $table->string('name');
         | 
| 117 | 
            +
                        $table->string('email')->unique();
         | 
| 118 | 
            +
            $table->timestamp('email_verified_at')->nullable();
         | 
| 119 | 
            +
                        $table->string('password');
         | 
| 120 | 
            +
                        $table->rememberToken();
         | 
| 121 | 
            +
                        $table->timestamps();
         | 
| 122 | 
            +
                    });
         | 
| 123 | 
            +
                }
         | 
| 124 | 
            +
             | 
| 125 | 
            +
                /**
         | 
| 126 | 
            +
                 * Reverse the migrations.
         | 
| 127 | 
            +
                 *
         | 
| 128 | 
            +
                 * @return void
         | 
| 129 | 
            +
                 */
         | 
| 130 | 
            +
                public function down()
         | 
| 131 | 
            +
                {
         | 
| 132 | 
            +
                    Schema::dropIfExists('users');
         | 
| 133 | 
            +
                }
         | 
| 134 | 
            +
            }
         | 
| 135 | 
            +
            ```
         | 
| 136 | 
            +
            です。ご回答お待ちしております。
         | 
1
エラーの追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -35,4 +35,8 @@ | |
| 35 35 | 
             
            ```
         | 
| 36 36 | 
             
            Route::get('products', ["uses"=>"ProductsController@index"]);
         | 
| 37 37 | 
             
            ```
         | 
| 38 | 
            -
            コードは、どこが間違っているかご指摘お願いいたします。
         | 
| 38 | 
            +
            コードは、どこが間違っているかご指摘お願いいたします。
         | 
| 39 | 
            +
             | 
| 40 | 
            +
            追記:エラーがDB not found となっていました。
         | 
| 41 | 
            +
            DBがうまく参照できていないと思うのですが、
         | 
| 42 | 
            +
            どこが間違っているのでしょうか。
         | 
