#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 ๐
Posts by Backpack for Laravel
#Laravel Tip
Did you know... You can conditionally throw exceptions in one line with throw_if() โ perfect for clean controllers & services.
No feedback = confused users:
โDid it save?โ
โDid it fail?โ
Fix it in seconds โ because silence is not UX.
prologue/alerts โ boom ๐
Seamless alert bubbles by @driesvints. Thanks for doing the heavy lifting!
Ever had that moment when you realize you
forgot a $fillable field
โฆagain? ๐
Do you?
Which #Laravel method prevents N+1 queries?
A) join()
B) load()
C) with()
D) eager()
Answer Quick๐
Curious about the raw SQL behind your #Laravel Eloquent queries? ๐ง
Simply use the toSql() method to reveal the exact SQL statement being executed!
Drop your answer โ most devs get this wrong ๐
Which file runs FIRST in #Laravelโs request lifecycle?
A) routes/web.php
B) public/index.php
C) app/Http/Kernel.php
D) bootstrap/app.php
DX wisdom in the replies ๐
Which #Laravel feature most improves DX for you?
A) Blade
B) Eloquent
C) Artisan
D) Service Container
๐ก #Laravel Tip
Controllers shouldnโt be โsmartโ ๐
Where should business logic live? Senior devs โ whatโs your take?
A) Traits
B) Models
C) Service classes
D) Observers
๐ Before Backpack: 5 hours making admin panels.
๐ After Backpack: 5 minutes.
Do you agree?
let other know in the comments. Thanks๐
There should be a better way ๐
Right?
You just finished your admin panelโฆ Now comes writing tests ๐ฉ
The problem isnโt writing tests.
Itโs writing the same tests 50 times.
Backpack Test Generators solve that. ๐
Automate the boring stuff.
Generate tests in minutes.
Focus on what matters. โฐ Build. Ship Fast. Repeat.
๐ค Ever need to display big numbers without overwhelming users?
Laravelโs Number::abbreviate() turns this:
1500000 => 1.5M
Perfect for dashboards, stats, and UI clarity ๐
Upgrade now in minutes:
backpackforlaravel.com/docs/7.x/cr...
backpackforlaravel.com/docs/7.x/up...
(just two commands for most cases)
โจ New in Backpack v7: Chips!
Tired of messy admin tables? Show complex info in compact, readable blocks โ no more cluttered tables.
Perfect for dashboards, tables, lists, show pages, and widgets.
Wanna know the raw SQL behind your #Laravel Eloquent query? ๐ง
Simply use the toSql() method to reveal the exact SQL statement being executed!
Knowing this changes how you structure #Laravel apps๐
Whatโs the purpose of app()->bind()?
A) Singleton creation
B) Dependency injection
C) Event handling
D) Model binding
If you know this, youโre past the basics. Drop your answer ๐
๐ค Need to pair two related lists by index?
#Laravelโs zip() makes it effortless:
#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 ๐
Curious how these reusable Blade components work?
Check out and see how easily you can drop tables, forms, and grids anywhere in your admin:
backpackforlaravel.com/docs/7.x/ba...
๐ Backpack v7
Now you can use data tables, forms & grids anywhere โ dashboards, custom pages, modals, whatever.
Did you knowโฆ With #Laravelโs incrementEach() and decrementEach() methods, you can easily update multiple counter columns in a single query:
๐ฌ Drop a #Laravel Tip
Security breakdown in the replies ๐
What protects Laravel forms from CSRF?
A) Middleware
B) Tokens
C) Sessions
D) All of the above
#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 ๐
๐ค Auto-translate your app using AI
Create or update content, and Backpack AutoโTranslate magically fills in all languages for you. ๐โจ
Supports DeepL, OpenAI, Claude โ just install & watch translations happen ๐
๐ก #Laravel Tip
Ever get lost in a huge route list?
Use the --path flag to filter routes by URI:
Perfect for quickly narrowing down routes while debugging ๐