delete dashboard/report after module uninstall

This commit is contained in:
Denis Duliçi
2021-03-30 00:12:51 +03:00
parent 9a82779f99
commit 72bf03edb4
10 changed files with 189 additions and 22 deletions

View File

@ -46,7 +46,7 @@ trait Users
$user = user();
if (empty($user)) {
return false;
return app()->runningInConsole() ? true : false;
}
$dashboard = $user->dashboards()->where('id', $id)->first();