Laravel Default Attribute Values: $attributes Explained
Create a new Eloquent model, ask for $flight->delayed, and you get null. Not false, even if your database...
Author
@dasunG · 156 articles
Laravel specialist with 5+ years of experience crafting scalable, high-performance web applications. Passionate about clean code, RESTful API design, and performance optimization. Active contributor to open-source Laravel packages and a strong advocate for PHP best practices. Dedicated to turning ideas into robust digital solutions — let’s build something amazing together!
Create a new Eloquent model, ask for $flight->delayed, and you get null. Not false, even if your database...
Most "top Linux commands" lists give you ls, cd and pwd and call it a day. You already...
For years the answer to "how do I install a PHP extension?" was pecl install something. That answer...
Open your app and look at the address bar. If it says /orders/1042, anyone can try /orders/1043. They...
Most developers know one way to keep a file out of Git: add it to .gitignore. That works...
A search box that fires a request on every keystroke, a scroll handler that recalculates layout 60 times...
You add ?status=paid filtering to an endpoint, write Status::from($_GET['status']), and it works. Then somebody requests ?status=PAID or ?status=refunded...
A shared hosting plan advertised at $2.99 a month looks like a rounding error. Then the first term...
Most Laravel backup setups share a quiet assumption: the server has enough free disk to hold the database...
A list endpoint looks trivial until it meets real traffic: someone requests per_page=1000000, a client pages through a...
Rate limiting looks simple: count requests, reject the extra ones. The strategy you pick decides whether a client...
Use Eloquent when you are working with individual records that have behavior: validation rules, casts, relationships, events, soft...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.