Danaq

Danaq

Member Since 1 Year Ago

Experience Points
590
Total
Experience

4,410 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    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.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
590 XP
Jul
11
4 months ago
Activity icon

Replied to Custom Mail Log Channel Breaks MAIL_DRIVER=log

Thank you very much! It works as expected now.

From retrospective view it makes a lot of sense to me now :)

PS: The 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.

Jul
10
4 months ago
Activity icon

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 ;)

Activity icon

Started a new Conversation Squareboat/sneaker Does Not Send Any Emails

Hi there,

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

Illuminate\Support\Facades\Mail::send(new Mailer($data));

works fine (using smtp), but using the same approach in the package for testing purposes, does not change anything. The package originally includes

\Illuminate\Contracts\Mail\Mailer

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 MAIL_DRIVER in 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!

Activity icon

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.

Therefor, the .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 config/logging.php:

[...]
'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" to MAIL_LOG_CHANNEL=mail added a default value to the section of the config/mail.php:

[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.