๐ง๐ถ๐ฝ ๐ผ๐ณ ๐ง๐ต๐ฒ ๐๐ฎ๐ ๐ณ๐ผ๐ฟ ๐๐ฎ๐ฟ๐ฎ๐๐ฒ๐น๐ถ๐ฎ๐ป๐โค๏ธ
Laravel is amazing when it comes to simplifying data filtering and collection manipulation. Let's dive into an incredibly handy feature Laravel provides with collection methods! ๐๐ช
๐. ๐๐ก๐๐ญ ๐ข๐ฌ ๐๐๐ฉ๐ฉ๐๐ง๐ข๐ง๐ ?
๐ฟ๐ฒ๐ท๐ฒ๐ฐ๐(): Quickly excludes all items that match certain conditions.
๐. ๐๐ฌ๐ ๐๐๐ฌ๐
Imagine you want to manage a user list displaying only active members in your application dashboard. Using collection methods like ๐ฟ๐ฒ๐ท๐ฒ๐ฐ๐(), you can easily clean up your data without cluttering your codebase with loops or complex conditions.
Clean code, clearer logic!
#CodeTips
#Laravelians
#Laravel
#CleanCode
#WebDevelopment
#PHP
#BestPractices
๐ง๐ถ๐ฝ ๐ผ๐ณ ๐ง๐ต๐ฒ ๐๐ฎ๐ ๐ณ๐ผ๐ฟ ๐๐ฎ๐ฟ๐ฎ๐๐ฒ๐น๐ถ๐ฎ๐ป๐โค๏ธ
No need to recall the same controller class again & again! ๐คฏ
Today, let's explore how the controller() route helper can make your code cleaner and more maintainable. Route grouping just got more beautiful! ๐๐ช
๐. ๐๐ก๐๐ญ ๐ข๐ฌ ๐๐๐ฉ๐ฉ๐๐ง๐ข๐ง๐ ?
๐ฐ๐ผ๐ป๐๐ฟ๐ผ๐น๐น๐ฒ๐ฟ(): Groups multiple routes under a single controller class.
๐ด๐ฟ๐ผ๐๐ฝ(): Keeps related routes organized together.
๐. ๐๐ฌ๐ ๐๐๐ฌ๐
Suppose you are building an API or web application with multiple actions in one controller. You don't want to cumbersome your routes files & want to make it clean & maintainable.
This approach will be your goto choice, it reduces duplication and improves readability!
#Laravelians
#Laravel
#CleanCode
#WebDevelopment
#PHP
#BestPractices
๐ป๐๐ ๐ฑ๐ค๐๐ง๐๐๐ ๐ถ๐ ๐ ๐๐๐ง๐๐ซ๐๐ก๐๐๐ โค๏ธ - ๐๐๐๐๐ค๐
๐ #1
Salah ud Din a guy who started his career as a #WordPress developer & later on he realizes that there's not so much learning in it as it's just a drag-drop so he was planning to learn something which involves custom coding.
Hence, he was introduced to Laravel by one of his friends & he moved to the beautiful #Php framework to explore the new world of elegant coding.
Salah ud Din tells us that he found #Laravel eloquent very useful for clean codding & the integration of #Laravel with modern frameworks like #VueJs keeps the framework up-to-date.
Salah ud Din is also working on "Trading View" which is a framework for #Cryptocurrencies market place apps.
Dear #Laraveliansโค๏ธ
Stay tuned as more to come ๐
www.linkedin.com/posts/muhammadabdullahmirza_wordpress-php-laravel-activity-7287170978646740993-sxng?utm_source=share&utm_medium=member_android
๐๐๐๐ฅ๐๐๐ญ๐ข๐ง๐ ๐จ๐ง ๐๐ง ๐๐ง๐๐ซ๐๐๐ข๐๐ฅ๐ ๐๐จ๐ฎ๐ซ๐ง๐๐ฒ: ๐๐ก๐ ๐
๐ข๐ซ๐ฌ๐ญ ๐๐๐ซ๐๐ฏ๐๐ฅ๐ข๐๐ง๐ฌ ๐๐๐๐ญ๐ฎ๐ฉ ๐ข๐ง ๐๐๐ค๐ข๐ฌ๐ญ๐๐ง โค๏ธ
After dedicating my personal efforts and hard work for the last 9 months finally, I successfully arranged my first-ever Laravelians โค๏ธ meetup yesterday! ๐
Though the number of attendees was very small, but I don't care, it will not stop me from chasing my dream of building the largest PHP/Laravel community for Pakistanis (maybe even the biggest in the world) and to bring Laracon to Pakistan!
With consistency and passion, this community will grow stronger and more motivated every day.
๐๐ง ๐๐๐ ๐๐๐๐๐. ๐
๐๐ญ๐๐ฒ ๐ญ๐ฎ๐ง๐๐, @๐๐๐๐ซ๐๐๐ซ๐๐ฏ๐๐ฅ๐ข๐๐ง๐ฌ โค๏ธ ๐๐ซ๐จ๐ฆ ๐๐๐ก๐จ๐ซ๐ ๐๐ง๐ ๐๐๐ซ๐๐๐ก๐ข! ๐๐
#Laravel #Laraveliansโค๏ธ #TaylorOtwell #MuhammadAbdullahM
Hahaha......
This week, the Laravel team released v11.28, with a
"composer run dev" command
After looking at this command it looks like JavaScript & PHP communities are in a real competition now. God knows well that what will be the future but trust me PHP is thriving by leaps & bounds.
hashtag#Laravel hashtag#Laravelians hashtag#PHP hashtag#TaylorOtwell