fixing routes

This commit is contained in:
Saeed Vaziry
2024-10-07 00:18:11 +02:00
parent a94d1d42d2
commit 8bf1cc141e
22 changed files with 70 additions and 522 deletions

View File

@ -1,32 +0,0 @@
<?php
namespace App\Helpers;
class Toast
{
public function success(string $message): void
{
$this->toast('success', $message);
}
public function error(string $message): void
{
$this->toast('error', $message);
}
public function warning(string $message): void
{
$this->toast('warning', $message);
}
public function info(string $message): void
{
$this->toast('info', $message);
}
private function toast(string $type, string $message): void
{
session()->flash('toast.type', $type);
session()->flash('toast.message', $message);
}
}