Replaced Moment with Carbon #84

Merged
Ghost merged 148 commits from develop into beta 2022-09-22 05:53:36 +02:00
Showing only changes of commit e0994b32ab - Show all commits

View file

@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
use App\Mail\SystemEmail;
use Symfony\Component\Mailer\Exception\TransportException;
class MailAPIController extends Controller
{
@ -23,10 +24,10 @@ class MailAPIController extends Controller
'type' => 'mail_good',
'message' => 'Mail Sent',
];
} catch (ERROR $e) {
} catch (TransportException $e) {
$result = [
'type' => 'mail_not_good',
'message' => 'Mail Not Sent',
'message' => 'Mail Not Sent. It\'s cool. Just check mail settings in the .env',
];
}