Skip to content

Commit

Permalink
added success and error key work in message:
Browse files Browse the repository at this point in the history
  • Loading branch information
msamgan committed Sep 20, 2024
1 parent 79feb56 commit 6808455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Support/Tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public function heading(string $heading): void

public function success(string $message): void
{
render('<div class="text-green-900 bg-green-300 px-1 font-bold">>> ' . $message . '</div>');
render('<div class="text-green-900 bg-green-300 px-1 font-bold">>> success: ' . $message . '</div>');
}

public function failure(string $message): void
{
render('<div class="text-red-900 bg-red-300 px-1 font-bold">!! ' . $message . '</div>');
render('<div class="text-red-900 bg-red-300 px-1 font-bold">!! error: ' . $message . '</div>');
}
}

0 comments on commit 6808455

Please sign in to comment.