Member Since 1 Year Ago
4,410 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Thank you very much! It works as expected now.
From retrospective view it makes a lot of sense to me now :)
php_sapi_name()-function is only to prevent permission errors when log files are generated from cli as well as from http-requests. Maybe I wil change that to the permmission-attribute later but therefor I have to change my permission properties on my web-directories.
Thanks and have a nice day.
Replied to Squareboat/sneaker Does Not Send Any Emails
Unfortunately not. I finally noticed, that the ~~~Mailable~~~-class used by the package, implements the ~~~ShouldQueue~~~-interface. During the process to include the package, I also setted up a queue in my system.
I was aware of the behavior that everything which implements this interface is automatically added to the queue and doing so never be processed because while in development I didnt setted up a proper queue worker, especially not for the default queue.
I have to check if I either change the package code to not queue the mailable or find out how I can change the queue these mailable are dispatched to.
Thanks for your input anyway ;)
Started a new Conversation Squareboat/sneaker Does Not Send Any Emails
my laravel 5.8 application will run on cli later. So, I found a packes which catches all exceptions and sends them per mail. I found https://packagist.org/packages/squareboat/sneaker Unfortunately, I don't receive any mails from this package.
While the manual execution of
works fine (using smtp), but using the same approach in the package for testing purposes, does not change anything. The package originally includes
and calls the process via:
$this->mailer->to($recipients)->send(new ExceptionMailer($subject, $body));
The testing command says everything works fine for the package besides I'm not getting any emails even at this point.
Even changing the
env-file to "log" does not help to see a message.
I'm not familiar in using contracts or facades nor building packages. I was just trying to debug this mailing functionality.
Does anyone have an idea?
Thanks very much!
Started a new Conversation Custom Mail Log Channel Breaks MAIL_DRIVER=log
I encountered an issue with the mail system of laravel 5.8. As the documentation says, Mail & Local Development one can change the way of sending emails to let it write them to a log-file.
.env as well as the
config/mail.php-file have options for that.
So, I added (the key was not here originally) a
MAIL_LOG_CHANNEL-key to my
.env-file with the value "mail" and changed the value of the key
MAIL_DRIVER to "log".
Obviously, I added a new channel to the
[...] 'mail' => [ 'driver' => 'single', 'path' => storage_path('logs/mail-'.php_sapi_name().'.log'), 'level' => 'info', ], [...]
What ever I tried, the mail was never written to the seperate log-file. I testet the channel with a normal log-statement without any problem.
I switched from
MAIL_LOG_CHANNEL=mail added a default value to the section of the
[before] 'log_channel' => env('MAIL_LOG_CHANNEL'), [after] 'log_channel' => env('MAIL_LOG_CHANNEL', 'mail'),
not getting the width of a hair near to the log entry.
Only with the absolute basic configuration it actually writes the mail to the log but with this solution into the wrong log file.
Does anyone have an idea? It looks pretty strange to me.
Thanks for your help.