Cool Tips 리트윗함
Cool Tips
975 posts

Cool Tips
@coool_tips
We are friends who love programming and we would like to help learn it and spread it to others and help solve the problems that our developers friends also face
Aga, Dakahlia, Egypt 가입일 Mayıs 2022
26 팔로잉34 팔로워
Cool Tips 리트윗함

#Laravel Tip 💡
Middleware groups are great — until one route needs an exception.
Laravel’s withoutMiddleware() lets you exclude inherited middleware on a single route without restructuring your routes 🚀

English
Cool Tips 리트윗함
Cool Tips 리트윗함

Did you know… With #Laravel’s incrementEach() and decrementEach() methods, you can easily update multiple counter columns in a single query:

English
Cool Tips 리트윗함

#Laravel Tip
⚠️ Are you updating records while looping with lazy()?
lazy() paginates using offsets.
If your update changes the query condition, rows can be skipped or processed twice.
lazyById() paginates by primary key instead — stable, predictable, safe.
That’s why it exists 🚀

English
Cool Tips 리트윗함

#Laravel Tip
Load data faster when the targeted values are integer. Use 𝘄𝗵𝗲𝗿𝗲𝗜𝗻𝘁𝗲𝗴𝗲𝗿𝗜𝗻𝗥𝗮𝘄() instead of the 𝘄𝗵𝗲𝗿𝗲𝗜𝗻() method to load data faster when the targeted values are integer.

English
Cool Tips 리트윗함
Cool Tips 리트윗함
Cool Tips 리트윗함
Cool Tips 리트윗함
Cool Tips 리트윗함
Cool Tips 리트윗함

Cool Tips 리트윗함
Cool Tips 리트윗함

HTTP Status Codes - Complete Reference:
1xx: Informational
100 – Continue
101 – Switching Protocols
102 – Processing
2xx: Success
200 – OK
201 – Created
202 – Accepted
204 – No Content
206 – Partial Content
3xx: Redirection
301 – Moved Permanently
302 – Found (Temporary Redirect)
304 – Not Modified
307 – Temporary Redirect
308 – Permanent Redirect
4xx: Client Errors
400 – Bad Request
401 – Unauthorized
403 – Forbidden
404 – Not Found
405 – Method Not Allowed
408 – Request Timeout
409 – Conflict
410 – Gone
413 – Payload Too Large
415 – Unsupported Media Type
418 – I'm a Teapot (Easter egg)
422 – Unprocessable Entity
429 – Too Many Requests
5xx: Server Errors
500 – Internal Server Error
501 – Not Implemented
502 – Bad Gateway
503 – Service Unavailable
504 – Gateway Timeout
507 – Insufficient Storage
508 – Loop Detected
English
Cool Tips 리트윗함
Cool Tips 리트윗함
Cool Tips 리트윗함

#Laravel Tip
Laravel has oldestOfMany(), newestOfMany() and ofMany(), that you can use on a hasMany relationship.

English
Cool Tips 리트윗함
Cool Tips 리트윗함
Cool Tips 리트윗함
















