Skip to content
Advertisement

Tag: laravel

Container cannot see the prebuilt vendor folder in it

My project is throwing the next error after restarting the docker container: Warning: require(/var/www/ /var/www/ /vendor/composer/./symfony/polyfill-php80/bootstrap.php): Failed to open stream: No such file or directory in ‘vendor/composer/autoload_real.php line 71 My Dockerfile: My docker-compose: Inside container run ls vendor/symfony before restarting the container: And after: The error is solving if remove the vendor directory and run composer install. I’m not a

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 InvalidArgumentException: Model name contains invalid characters.

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 from ‘where’ in here, use from

Advertisement