mardi 24 mai 2016

Laravel SendingI form data through error email

I am using the error handler page to send an email to tech support whenever a 500 error is hit with the error. Is there a way to pass through the current form requested data so I can get more information?

if ($e instanceof \Exception) {
   // emails.exception is the template of your email
    // it will have access to the $error that we are passing below
Mail::send('emails.error',['error' => $e->getMessage()], function($message {
$message->to('devorah@cucumber.com')->subject('Laravel Error');
 });        



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/20whQbg
via IFTTT

Aucun commentaire:

Enregistrer un commentaire