{"class":"Illuminate\\Database\\QueryException","file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php","line":712,"message":"SQLSTATE[HY000]: General error: 1005 Can't create table `seed_dashboard`.`hotels` (errno: 150 \"Foreign key constraint is incorrectly formed\") (SQL: alter table `hotels` add constraint `hotels_country_id_foreign` foreign key (`country_id`) references `counties` (`id`) on delete cascade on update cascade)","context":null,"trace":[{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php","line":672},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php","line":502},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Schema\\Blueprint.php","line":109},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Schema\\Builder.php","line":364},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Schema\\Builder.php","line":227},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Facades\\Facade.php","line":337},{"file":"G:\\dashboard_seed\\seed-dashboard\\database\\migrations\\2022_03_25_180812_create_hotels_table.php","line":30},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Migrations\\Migrator.php","line":394},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Migrations\\Migrator.php","line":403},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Migrations\\Migrator.php","line":202},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Migrations\\Migrator.php","line":167},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Migrations\\Migrator.php","line":112},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Migrations\\MigrateCommand.php","line":85},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Migrations\\Migrator.php","line":585},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Console\\Migrations\\MigrateCommand.php","line":94},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php","line":36},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php","line":41},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php","line":93},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php","line":37},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":653},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php","line":136},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\symfony\\console\\Command\\Command.php","line":291},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php","line":121},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\symfony\\console\\Application.php","line":989},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\symfony\\console\\Application.php","line":299},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\symfony\\console\\Application.php","line":171},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php","line":102},{"file":"G:\\dashboard_seed\\seed-dashboard\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php","line":129},{"file":"G:\\dashboard_seed\\seed-dashboard\\artisan","line":37}],"line_preview":{"703":"        \/\/ took to execute and log the query SQL, bindings and time in our memory.","704":"        try {","705":"            return $callback($query, $bindings);","706":"        }","707":"","708":"        \/\/ If an exception occurs when attempting to run a query, we'll format the error","709":"        \/\/ message to include the bindings with SQL, which will make this exception a","710":"        \/\/ lot more helpful to the developer instead of just the database's errors.","711":"        catch (Exception $e) {","712":"            throw new QueryException(","713":"                $query, $this->prepareBindings($bindings), $e","714":"            );","715":"        }","716":"    }","717":"","718":"    \/**","719":"     * Log a query in the connection's query log.","720":"     *","721":"     * @param  string  $query","722":"     * @param  array  $bindings"},"hostname":"DESKTOP-9V7FC2C","occurrences":7}