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 #PHP Do you use ?? or stick with isset() ? Clean shortcut or confusing syntax? What do you think...๐Ÿ‘‡

laravelbackpack's tweet image. #Laravel #PHP

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

Clean shortcut or confusing syntax?  What do you think...๐Ÿ‘‡

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

Loading...

Something went wrong.


Something went wrong.