add error notification important feature

This commit is contained in:
Cüneyt Şentürk
2021-02-12 19:26:38 +03:00
parent bdc17242a6
commit 9665d8d695
43 changed files with 102 additions and 102 deletions

View File

@@ -22,7 +22,7 @@ class Login
if (!$company) {
app('App\Http\Controllers\Auth\Login')->logout();
flash(trans('auth.error.no_company'))->error();
flash(trans('auth.error.no_company'))->error()->important();
return;
}

View File

@@ -32,13 +32,13 @@ class CreateDocumentTransaction
$type = Str::plural($event->document->type);
if (empty($user)) {
flash($message)->error();
flash($message)->error()->important();
redirect()->route("signed.$type.show", $document->id)->send();
}
if ($user->can('read-client-portal')) {
flash($message)->error();
flash($message)->error()->important();
redirect()->route("portal.$type.show", $document->id)->send();
}