Member Since 2 Years Ago
3,800 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.
Started a new Conversation Where Would You Save Tons Of Images That Are About 40kb Small? File, Block Or Object Storage?
Currently, I'm using DigitalOcean Spaces. However, I'm having rate-limit-issues with them.
Besides that, the official docs are not recommending to use DigitalOcean Spaces, when the file size is smaller than 1MB (side question: why so?).
To simplify my page. Users can upload images and see images from other users as well. Each image is only about 40kb small.
So my question is: Where would you storage images that are about 40kb small? Still object storage? S3 has way more rate limit but is expensive. Or do you have something else in mind?
YES: I found the reason why it was so slow. My docker file installed Xdebug as well. This reduces the perfomance of phpunit drastically!
@michaloravec Thanks but this is when you don't use Redis Clusters. Please visit the link: https://laravel.com/docs/7.x/redis#configuration and scroll down to
Configuring Clusters. You see that the
'database' => 0,is set to 0.
The reason ist because for Redis cluster you are not able to use multiple databases
@michaloravec Do you have any knowledge perhaps about Redis cluster? Because if you are calling
php artisian cache:clear you are also firing the command
FLUSHDB. Wouldn't this also delete everything you have in queues and in sessions?
That was the reason why I have asked the question if you ever call
cache:clear in production.
Example source: https://aregsar.com/blog/2020/my-laravel-redis-configuration/
In this example for Redis Cluster, all the
database values are set to 0
Started a new Conversation Do You Ever Call "php Artisian Cache:clear" In Production?
This might be a stupid question. But I'm not really sure if there is a situation where you need to clear the cache in production.
So: Do you ever call
php artisian cache:clear in production?
Started a new Conversation Redis: Usually You Are Renaming The Command 'FLUSHDB'. What Should I Do, When I Set Cache To Redis?
In Laravel, you can set the cache to Redis. However, when I clear the cache with
php artisan cache:clear, I get the error:
ERR unknown command 'FLUSHDB'
Obviously, because I renamed the command (it's best practice).
But now I'm confused. I cannot use Redis in this case. Should I rename it back so I can use Redis as cache?
@matildah or for future readers: https://improvmx.com/guides/send-emails-using-gmail/
There is a good tutorial for it. Thanks @santino for sharing your data !
@madprabh Ok wow. I think that's perfect. Going to try it out :) Thanks!
Edit1: There are two things that I don't understand:
Started a new Conversation How To Secure The Connection To My Separately API Server?
Let's say I have two different servers:
I'm just not sure, how can I secure this connection between those two servers, so that foreign request from other servers are not able to do anything?
For example, I have a simple form on the SPA and I want to send it to the API server so that it can send me an email back to me. Nothing special. Now it's easy to find out what the endpoint is. I want to prevent others to send a request via the endpoint. How do you do it?
I have looked up for solutions. But usually, I have ended up with Laravel Passport. But that's not really what I'm looking for. I don't need OAuth. I don't have users on the SPA.
Thank you for your help!