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

#Laravel Tip Date filtering is easy if you know these methods:

laravelbackpack's tweet image. #Laravel Tip

Date filtering is easy if you know these methods:

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

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

#Laravel lazy() vs get() Did you know.... You can stream large datasets from the DB using lazy() — way more memory-efficient than get().

laravelbackpack's tweet image. #Laravel lazy() vs get()

Did you know.... You can stream large datasets from the DB using lazy() — way more memory-efficient than get().

#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 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... filled() is smarter than has() — it also checks that the value isn't null or empty.

laravelbackpack's tweet image. #Laravel Tip

Did you know... filled() is smarter than has() — it also checks that the value isn't null or empty.

#Laravel Tip Don't let database queries slow you down. Use Laravel's cache facade to cache data temporarily, reducing database queries.

laravelbackpack's tweet image. #Laravel Tip

Don't let database queries slow you down. Use Laravel's cache facade to cache data temporarily, reducing database queries.

#Laravel Tip Did you know... You can register only specific routes from a resource controller — no need to define them all.

laravelbackpack's tweet image. #Laravel Tip

Did you know... You can register only specific routes from a resource controller — no need to define them all.

Loading...

Something went wrong.


Something went wrong.