Laravel tinkerからデータベースへつながっていること (SQLを発行出来る状態になっていること) を確認したい!そんなとき コマンド DB::select('select 1'); 実行するとこんな感じ >>> DB::select('select 1'); => [ {#2300 +"1": 1, }, ] 赤くハイライトされたエラーが出なければ問題🍆 エラー例 下記のようなエラーが出たら、何かがおかしいので直す >>> DB::select('select 1'); Illuminate/Database/QueryException with message 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve (SQL: select 1)