我错误地从phpmyadmin中删除了telescope_entries表,我不知道如何恢复它,
我试着删除这个包并安装它migration
命令
像这样:
php artisan telescope:clear
php artisan telescope:install
php artisan telescope:prune
php artisan telescope:publish 此外,我还尝试创建它,因为它是在其他项目中找到的,并且我得到了一个mysql错误。
#1215 - Cannot add foreign key constraint 发布于 2022-02-22 11:14:10
去你的迁徙桌,
然后删除2018_08_08_100000_create_telescope_entries_table迁移
再做一次php artisan migrate
你可能需要做php artisan vendor:publish --tag=telescope-migrations
您还需要删除telescope_entries_tags和telescope_monitoring表,否则迁移将失败。
https://stackoverflow.com/questions/71218604
复制相似问题