I built a system for Nigerian hospitals after noticing something:
Most clinics are losing ₦200k–₦600k every month… and they don’t even realize it.
Not theft.
Just:
• Unbilled lab tests
• Missed consultations
• Manual billing errors
So I built CareLink.
Hey Laravel Developers 👩💻
Validation rules are one of the most fascinating features of Laravel, allowing you to easily validate client-side inputs.
But sometimes, you might want to validate a field without returning it in the validated array.
Not to worry, Laravel comes with the exclude_* validation rules.
These rules prevent an attribute from being returned in the validated array based on a given condition, allowing the array to be easily mass-assigned.
Refer to the example below!
#laravel #php
I've been a backend Engineer for 12+ years. Today, I'm a Principal Engineer at Atlassian.
I've designed systems that handle millions of requests. Sat on both sides of system design interviews.
Reviewed more architecture docs than I can count.
Starting today, I'm breaking down the fundamentals of scaling for the next 25 days.
If you're learning system design bookmark this thread, you're going to get a lot of learning from this.
Bro, I'm so fucking tired of this AI shit.
You pour 8–10 years into mastering a craft late nights, brutal feedback, real scars from real failures.
Then some model trained on millions of stolen data (including yours) spits out better work in 4 seconds flat.
And the replies? "This is amazing Future is here"
We're not progressing. We're enthusiastically building the machine that makes our entire skillset worthless and calling it innovation.
Hey Laravel Developers 👩💻
You must be aware of the Notification class that comes with Laravel, which allows us to easily configure different aspects of the notifications being sent to users.
Recently, Laravel added two new helper methods to the MailMessage class: attachFromStorage() and attachFromStorageDisk().
As their names suggest, these methods allow us to easily attach files from any given storage disk.
Here is the before and after of what can be changed!
#laravel #php
Hey Laravel Developers 👩💻
While working with Laravel Sanctum for authenticating our SPA, we have a couple of options: either via a Bearer token or using sessions and cookies.
We often reach for sessions and cookies because they are generally more secure and reliable than using access tokens.
But the problem is, how do you provide access to developers of your API on their local environments? Cookies won't be sent by the browser unless the domain matches.
In such scenarios, I often go with an approach that I call Dev Auth Bypass, which basically means that a random token is generated by the server and shared with a developer, allowing them to bypass authentication on their local environments.
However, please make sure to keep this token secure, and never have this feature enabled in your production environment.
#laravel #php
Laravel tip:
If your query should return exactly one record, `sole()` expresses that intent better than `firstOrFail()`.
It will fail if zero records exist and also if multiple records exist.
Small difference. Big guarantee. 👇
Hey Laravel Developers 👩💻
You might have used the Cache::get() method in Laravel to fetch a value for a key from the cache store.
But sometimes, there is a possibility that within a single request lifecycle, the same key is accessed multiple times in different places.
If you use the Cache::get() method, this would result in multiple calls to the Redis server to fetch the value.
To optimise this, we can make use of the Cache::memo() driver, which fetches the value from the cache store on the first request and keeps it in memory.
For all subsequent fetches, the value is returned from memory, avoiding additional requests to Redis or any other cache store.
#laravel #php
@jon_d_doe Sir, there is something bothering me but I don't know how to reach you. Your back up page and main page isn't showing the message icon to chat you up sir. It's really serious and I need your help
Did you know that @nativephp has its own Laravel starter kit version?
So, you need only three terminal commands to see NativePHP starter-app on your phone.
Jump App is similar to Expo Go for React Native.
Read more in the docs: https://t.co/F8jQu6KUkM
Hey Laravel Developers 👩💻
In a recent release of Laravel v13.10.0, we have a new "storage" driver available for caching.
What this does mean is that you can also save cache on AWS S3 buckets.
This is useful in cases when the value of the cache is large, and S3 is optimised for working with files.
But beware, the storage driver for caching might be slower compared to other in-memory cache drivers, so you should only use it in case you don't care much about the speed.
Would you use the storage driver for caching? What's your use case?
#laravel #php
Since the algorithm brought me here:
while ($alive) {
learn();
build();
ship();
}
Full-stack engineer. Laravel guy. Building scalable SaaS products 👨🏽💻
As a Laravel dev, this reads like a production query .
```php
Marriage::query()
->where('trust', true)
->where('stability', true);
```
After 5+ years building and leading full-stack products, I’ve learned the same thing applies to systems and relationships:
weak
Go and check divorce court records.
Where the reason for divorce is infidelity, more men initiated the divorce.
Where the reason for divorce is lack of finance or DV, more women initiated the divorce.
Marriages where the women have not been caught in infidelity & where the men are providing more, last much longer than marriages where the opposite occurs.
End.