finnlesueurgmailcom - 4 months ago

Hey,

I'm making a dashboard widget and I accidentally deleted the extension files without removing the dashboard widget and now I get a fatal error whenever I try load the dashboard.

Is there an artisan command I could use to reset the dashboard?

Many thanks in advance!

Answer

fryiee - 4 months ago

@finnlesueurgmailcom

  1. Delete from {app}_dashboard_widgets table by extension slug (note the ID)
  2. Delete from {app}_dashboard_widgets_translations table by ID from above
  3. Run composer dump-autoload
  4. Run streams:compile

fryiee - 4 months ago

@finnlesueurgmailcom

  1. Delete from {app}_dashboard_widgets table by extension slug (note the ID)
  2. Delete from {app}_dashboard_widgets_translations table by ID from above
  3. Run composer dump-autoload
  4. Run streams:compile

finnlesueurgmailcom - 4 months ago

Thank you @fryiee! It makes me a bit nervous to go deleting entries from the DB but it worked a charm. Back in action!