Discover and read the best of Twitter Threads about #epiclaravel

Most recents (1)

๐Ÿ”ฅ Epic Laravel Tips Thread ๐Ÿ”ฅ [ Part 1 ] I decided to create weekly threads and share epic @laravelphp tips that will lead to a cleaner and more performant code!

Let's go ๐Ÿงต #epiclaravel ๐Ÿ‘‡๐Ÿป

1/11
๐Ÿ”ฅ Epic Laravel ๐Ÿ”ฅ - Tip No. 1 [ Eloquent Global Query Scopes ] Implementing your own eloquent global query scopes can be a quick and straightforward approach to ensure that all queries for a given model are subject to certain limitations:

2/11
๐Ÿ”ฅ Epic Laravel ๐Ÿ”ฅ - Tip No. 2 [ Conditional Relationships ]
Relationships allow for powerful method chaining and querying. However, for consistency reasons consider creating a separate relationship method that includes the desired chaining or querying:
3/11
Read 11 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!