Skip to content

Commit

Permalink
close#725 Fixed:App Uninstall Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Batuhan Baş committed Jan 14, 2019
1 parent 02ca738 commit 6fa1ad5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Traits/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,12 @@ public function uninstallModule($alias)
'version' => $module->get('version'),
];

Artisan::call('cache:clear');

$module->delete();

Artisan::call('cache:clear');
// Cache Data clear
File::deleteDirectory(storage_path('framework/cache/data'));

return [
'success' => true,
Expand Down

0 comments on commit 6fa1ad5

Please sign in to comment.