Skip to content

Tag: laravel

Mail Not Sending via Mailgun API Laravel 8

I am trying to send mail via the mailgun API from my controller but the mail is not reaching mailgun and I am not getting any error messages/logs. This is in my .env: This is in my services.php: This is in my mail.php: This is how I am sending the mail in my controller: This is working when I send

InvalidArgumentException when creating model through artisan

I am new to Laravel and is encountering a problem when I start a new laravel project. My current environment is: PHP 7.4.14 on Linux (Manjaro) & Composer 2.0.9. I use the following command to initialize a laravel project: Then I switch to the directory of lara and type: And then, I got an InvalidArgumentE…

Laravel get data by time

I need to get data that has been created from 10 minutes ago till now but it returns wrong results $progresses return data with time stamp of 2021-02-07T09:15:44.000000Z while this data is belong to 8 hours ago. Strange thing is that in my database I don’t even have such timestamp! Answer Do not use fro…