laravelbackpack's profile picture. The most flexible admin panel for Laravel developers - 2.5M downloads and counting 📈 Follow us for tips & tricks on Laravel, Backpack & admin panels 💻

Backpack for Laravel

@laravelbackpack

The most flexible admin panel for Laravel developers - 2.5M downloads and counting 📈 Follow us for tips & tricks on Laravel, Backpack & admin panels 💻

#Laravel Tip Transfer large files seamlessly using streams:

laravelbackpack's tweet image. #Laravel Tip

Transfer large files seamlessly using streams:

#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!

laravelbackpack's tweet image. #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!

#Laravel Tip Did you know... You can fetch a single column directly with value() — simpler & faster than first().

laravelbackpack's tweet image. #Laravel Tip

Did you know... You can fetch a single column directly with value() — simpler & faster than first().

#Laravel #PHP Ever replaced a bunch of isset() checks with optional chaining? Smart move or risky readability hit? 👇

laravelbackpack's tweet image. #Laravel #PHP

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

Smart move or risky readability hit? 👇

#Laravel Tip Did you know about… `whereAny()` method that can search multiple columns using OR logic in a cleaner way!👇

laravelbackpack's tweet image. #Laravel Tip

Did you know about… `whereAny()` method that can search multiple columns using OR logic in a cleaner way!👇

#Laravel Tip Did you know about… `whereAny()` method that can search multiple columns using OR logic in a cleaner way!👇

laravelbackpack's tweet image. #Laravel Tip

Did you know about… `whereAny()` method that can search multiple columns using OR logic in a cleaner way!👇

#Laravel #PHP Do you prefer sending mail inline or using a Mailable class? 👇

laravelbackpack's tweet image. #Laravel #PHP

Do you prefer sending mail inline or using a Mailable class? 👇

#Laravel and #PHP Tip Did you know… you can import multiple classes from a single namespace like this👇 Way cleaner, right? 😁

laravelbackpack's tweet image. #Laravel and #PHP Tip

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

Way cleaner, right? 😁

#Laravel Tip Eager load relationships to avoid N+1 query issues👇

laravelbackpack's tweet image. #Laravel Tip

Eager load relationships to avoid N+1 query issues👇

#Laravel Tip If you want to automatically delete old entries, you can use the Prunable Trait. No need to write custom commands:

laravelbackpack's tweet image. #Laravel Tip

If you want to automatically delete old entries, you can use the Prunable Trait. No need to write custom commands:

#Laravel #PHP Do you use arrow functions everywhere? 👇 Cleaner or harder to read? 👇

laravelbackpack's tweet image. #Laravel #PHP

Do you use arrow functions everywhere? 👇

Cleaner or harder to read? 👇

#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.

laravelbackpack's tweet image. #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.

#Laravel Tip Did you know... Laravel understands your relations and lets you write much cleaner code👇

laravelbackpack's tweet image. #Laravel Tip

Did you know... Laravel understands your relations and lets you write much cleaner code👇

#Laravel Tip Did you know.... tap() = Tweak and Return 🪄 Yes, Laravel's tap() lets you modify an object and return it — perfect for clean, chainable code.

laravelbackpack's tweet image. #Laravel Tip

Did you know.... tap() = Tweak and Return 🪄

Yes, Laravel's tap() lets you modify an object and return it — perfect for clean, chainable code.

Loading...

Something went wrong.


Something went wrong.