<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w" -->

---
title: 9 Laravel Tips in 9 Minutes: September 2026 Edition
description: A rapid-fire rundown of nine PHP and Laravel tips gathered from Twitter, covering readable numeric literals, restricting Eloquent model updates/deletes in the...
canonical: https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 9 Laravel Tips in 9 Minutes: September 2026 Edition | daily.dev
og:description: A rapid-fire rundown of nine PHP and Laravel tips gathered from Twitter, covering readable numeric literals, restricting Eloquent model updates/deletes in the...
og:url: https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w
og:image: https://api.daily.dev/og/posts/5FyI0KS4w.png
og:image:alt: 9 Laravel Tips in 9 Minutes: September 2026 Edition
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 9 Laravel Tips in 9 Minutes: September 2026 Edition

**[Laravel Daily](https://daily.dev/sources/laraveldaily)** · 9 min read · 3 upvotes · 2 comments

## Summary

A rapid-fire rundown of nine PHP and Laravel tips gathered from Twitter, covering readable numeric literals, restricting Eloquent model updates/deletes in the booted method, a one-line migration method to drop a foreign ID column, PHP's round() function with rounding mode constants, Eloquent's valueOrFail and wasKey methods, the Str::initials and Str::headline string helpers, notification shouldSend hooks per channel, and configurable dynamic backoff functions for queued job retries.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=0yblAbGThks>

## Questions this post answers

### How do I prevent an Eloquent model from being updated or deleted in Laravel?

Override the static booted method on the model and hook into the updating or deleting events, throwing an exception before the operation completes. This blocks changes made through the Eloquent model itself, though it does not stop direct database queries or query builder operations that bypass the model, making it useful for protecting audit or compliance records.

_Developers hardening data integrity rules can find more Laravel patterns like this through daily.dev._

### Is there a single Laravel migration method to drop both a foreign ID and its column in the down method?

Yes, dropConstrainedForeignId lets you specify just the column name to remove both the foreign key constraint and the column in one call within a migration's down method. It still exists and works in Laravel 13, even though it is not listed in the official laravel.com documentation; it can be found instead on the unofficial api.laravel.com reference site.

_Laravel developers refining migration rollback logic can track tips like this via daily.dev._

### How does the PHP round() function's third parameter control rounding behavior?

The third parameter of PHP's round() function accepts constants that control rounding mode beyond simple up or down, including options to round to the nearest even or odd value. This lets you override standard rounding rules for specific numeric scenarios, useful when consistent even or odd results are needed rather than default half-up rounding.

_PHP developers debugging rounding edge cases can browse practical language tips on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@rgodiyal** · 0 upvotes

> ![GIF](https://static.klipy.com/ii/d7aec6f6f171607374b2065c836f92f4/f5/cf/UCzch2JZ.gif)

## Similar posts on daily.dev

- [What We Know About Laravel 13](https://daily.dev/posts/what-we-know-about-laravel-13-noeen07cu) · Laravel News · 97 upvotes · 1 comments
- [Laravel February Product Updates](https://daily.dev/posts/laravel-february-product-updates-vdppnpzs7) · Laravel · 40 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"9 Laravel Tips in 9 Minutes: September 2026 Edition","url":"https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w"},"datePublished":"2026-09-08T06:29:39.823Z","dateModified":"2026-09-14T09:00:23.869Z","description":"A rapid-fire rundown of nine PHP and Laravel tips gathered from Twitter, covering readable numeric literals, restricting Eloquent model updates/deletes in the...","image":"https://i.ytimg.com/vi/0yblAbGThks/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/0yblAbGThks/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Laravel Daily","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Laravel Daily","logo":"https://media.daily.dev/image/upload/s--vzdgNGfl--/f_auto/v1725044498/logos/laraveldaily","url":"https://daily.dev/sources/laraveldaily"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"database,php,laravel","timeRequired":"PT9M","video":{"@type":"VideoObject","name":"9 Laravel Tips in 9 Minutes: September 2026 Edition","description":"A rapid-fire rundown of nine PHP and Laravel tips gathered from Twitter, covering readable numeric literals, restricting Eloquent model updates/deletes in the...","thumbnailUrl":"https://i.ytimg.com/vi/0yblAbGThks/sddefault.jpg","uploadDate":"2026-09-08T06:29:39.823Z","duration":"PT9M","url":"https://api.daily.dev/r/5FyI0KS4w","embedUrl":"https://www.youtube.com/embed/0yblAbGThks"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel Daily","item":"https://daily.dev/sources/laraveldaily"},{"@type":"ListItem","position":3,"name":"9 Laravel Tips in 9 Minutes: September 2026 Edition"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w","comment":[{"@type":"Comment","text":"","datePublished":"2026-09-11T06:50:14.219Z","url":"https://daily.dev/posts/5FyI0KS4w#c-RLTvcGFZv","author":{"@type":"Person","name":"Rahul Godiyal","url":"https://daily.dev/rgodiyal","image":"https://lh3.googleusercontent.com/a/ACg8ocJUbWuKor0twjzGVmI3sXXFcW_cr9pu-M4_NN4eu3TOF-7Cf9o=s96-c"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/9-laravel-tips-in-9-minutes-september-2026-edition-5fyi0ks4w#faq","mainEntity":[{"@type":"Question","name":"How do I prevent an Eloquent model from being updated or deleted in Laravel?","acceptedAnswer":{"@type":"Answer","text":"Override the static booted method on the model and hook into the updating or deleting events, throwing an exception before the operation completes. This blocks changes made through the Eloquent model itself, though it does not stop direct database queries or query builder operations that bypass the model, making it useful for protecting audit or compliance records. Developers hardening data integrity rules can find more Laravel patterns like this through daily.dev."}},{"@type":"Question","name":"Is there a single Laravel migration method to drop both a foreign ID and its column in the down method?","acceptedAnswer":{"@type":"Answer","text":"Yes, dropConstrainedForeignId lets you specify just the column name to remove both the foreign key constraint and the column in one call within a migration's down method. It still exists and works in Laravel 13, even though it is not listed in the official laravel.com documentation; it can be found instead on the unofficial api.laravel.com reference site. Laravel developers refining migration rollback logic can track tips like this via daily.dev."}},{"@type":"Question","name":"How does the PHP round() function's third parameter control rounding behavior?","acceptedAnswer":{"@type":"Answer","text":"The third parameter of PHP's round() function accepts constants that control rounding mode beyond simple up or down, including options to round to the nearest even or odd value. This lets you override standard rounding rules for specific numeric scenarios, useful when consistent even or odd results are needed rather than default half-up rounding. PHP developers debugging rounding edge cases can browse practical language tips on daily.dev."}}]}
```

