Backpack for Laravel
banner
backpackforlaravel.com
Backpack for Laravel
@backpackforlaravel.com
The most flexible admin panel for Laravel developers - 2.5M downloads and counting 📈 Follow us for tips & tricks on Laravel, Backpack & admin panels 💻
#Laravel #PHP

Ever replaced a bunch of isset() checks with optional chaining?

Smart move or risky readability hit? 👇
November 15, 2025 at 12:30 PM
#Laravel Tip

Did you know... Laravel understands your relations and lets you write much cleaner code👇
November 13, 2025 at 12:30 PM
#Laravel Tip

If you want to automatically delete old entries, you can use the Prunable Trait. No need to write custom commands:
November 11, 2025 at 12:30 PM
Laravel Collections Tip

Check out the static `times` method. It creates a new collection, invoking the given closure a specified number of times.
November 10, 2025 at 12:30 PM
#Laravel lazy() vs get()

Did you know.... You can stream large datasets from the DB using lazy() — way more memory-efficient than get().
November 8, 2025 at 12:30 PM
#PHP Tip

Did you know... You can destructure arrays directly in the right-hand part of a foreach loop!

Give it a shot for cleaner and more readable code!
November 6, 2025 at 12:30 PM
#Laravel #PHP

Do you use compact() when passing data to views....?

Is it an elegant shorthand or readability killer? Drop your thoughts in the comments!👇
November 4, 2025 at 8:11 AM
#Laravel lazy() vs get()

Did you know.... You can stream large datasets from the DB using lazy() — way more memory-efficient than get().
October 31, 2025 at 12:30 PM
#Laravel Tip

Transfer large files seamlessly using streams:
October 28, 2025 at 12:30 PM
#PHP Tip

Did you know... You can destructure arrays directly in the right-hand part of a foreach loop!

Give it a shot for cleaner and more readable code!
October 25, 2025 at 11:30 AM
#Laravel #PHP

Do you use compact() when passing data to views....?

Is it an elegant shorthand or readability killer? Drop your thoughts in the comments!👇
October 24, 2025 at 11:30 AM
#Laravel Tip

Did you know... You can fetch a single column directly with value() — simpler & faster than first().
October 23, 2025 at 11:30 AM
#Laravel #PHP

Ever replaced a bunch of isset() checks with optional chaining?

Smart move or risky readability hit? 👇
October 21, 2025 at 11:30 AM
#Laravel Tip

Did you know about… `whereAny()` method that can search multiple columns using OR logic in a cleaner way!👇
October 20, 2025 at 11:30 AM
#Laravel #PHP

Do you use ?? or stick with isset() ?

Clean shortcut or confusing syntax? What do you think...👇
October 18, 2025 at 11:30 AM
#Laravel Tip

Did you know about… `whereAny()` method that can search multiple columns using OR logic in a cleaner way!👇
October 17, 2025 at 11:30 AM
#Laravel #PHP

Do you prefer sending mail inline or using a Mailable class? 👇
October 16, 2025 at 11:30 AM
#Laravel and #PHP Tip

Did you know… you can import multiple classes from a single namespace like this👇

Way cleaner, right? 😁 x.com/laravelback...
October 14, 2025 at 11:30 AM
#Laravel Tip

Eager load relationships to avoid N+1 query issues👇
October 13, 2025 at 11:30 AM
#Laravel Tip

If you want to automatically delete old entries, you can use the Prunable Trait. No need to write custom commands:
October 11, 2025 at 11:30 AM
#Laravel #PHP

Do you use arrow functions everywhere? 👇

Cleaner or harder to read? 👇
October 10, 2025 at 11:30 AM
#Laravel Tip
Load data faster when the targeted value is an integer. Use 𝘄𝗵𝗲𝗿𝗲𝗜𝗻𝘁𝗲𝗴𝗲𝗿𝗜𝗻𝗥𝗮𝘄() instead of the 𝘄𝗵𝗲𝗿𝗲𝗜𝗻() method to load data faster when the targeted value is an integer.
October 9, 2025 at 11:30 AM
#Laravel #PHP

Do you map or loop? 👇

Functional elegance or just fancy syntax? What do you think👇
October 7, 2025 at 2:25 PM
#Laravel Tip

Did you know... Laravel understands your relations and lets you write much cleaner code👇
October 6, 2025 at 11:30 AM
#Laravel #PHP

Ever imported multiple classes from one namespace like this? 👇

Is it a sleek move or a messy mistake? Drop your thoughts in the comments! 👇
September 28, 2025 at 11:23 AM