laravel デバッグ ツール Telescope
これはブラウザ上で変数、キャシュ、リクエストなどほぼすべてが確認できる便利なツール
domain/telescope でアクセスする
composer require laravel/telescope --dev php artisan telescope:install php artisan migrate
エラーがでる マイグレーションファイルが生成されている
/** * Create a new migration instance. * * @return void */ public function __construct() { $this->schema = Schema::connection( config('telescope.storage.database.connection') ); }
config/telescope.php を修正
'storage' => [ 'database' => [ //'connection' => env('DB_PSQL_CONNECTION', 'mysql'), 'connection' => env('DB_PSQL_CONNECTION', 'pgsql'), // PostgreSQL name in my database.php file 'chunk' => 1000, ], ],
公式サイトはこちら