Tip 3 - Protected Variables in Laravel
I notice some devs keep repeating the same variable inside every method… messy. 🤦🏿♂️
Instead, you can define it once as a protected variable in your controller, and reuse it across methods.
Tip 2 – Implementing Custom Fallback Pages
It’s surprising how often I see codebases without a proper custom 404 (fallback) page
Fortunately, Laravel makes implementing a clean, custom fallback page easy and straightforward
Here’s one simple approach:
Tip 2 – Implementing Custom Fallback Pages
It’s surprising how often I see codebases without a proper custom 404 (fallback) page
Fortunately, Laravel makes implementing a clean, custom fallback page easy and straightforward
Here’s one simple approach: https://t.co/CSl3J3oOyK
Tip 1 – Search with Eloquent
I’ve saw some codebases where devs did search the hard way , writing long queries and even looping through collections manually
Truth is, Laravel makes it super easy. Here’s the clean way to handle search with Eloquent
Tip 1 – Search with Eloquent
I’ve saw some codebases where devs did search the hard way , writing long queries and even looping through collections manually
Truth is, Laravel makes it super easy. Here’s the clean way to handle search with Eloquent https://t.co/XHacrMwSPc
Lately, I’ve been exploring GitHub to check out different Laravel applications. I’ve learned a lot, some codebases really stood out, while others had a few glitches.
Over the next few days ~ weeks, I’ll be sharing some Laravel tips to help grow the ecosystem. Stay tuned!
Today I saw a PHP dev’s code that hard deletes users when they deactivate. like wipes the database clean.
Why not use the softDelete method to preserve linked columns and retrieve in case of mistakes?
laravel.com/docs/12.x/eloq…
When I was learning PHP at first, I was using notepad at first
Carrying that idea that if you can work without vscode you are a chief
Oh stupid me 🤦🏿♂️
When I was learning PHP at first, I was using notepad at first
Carrying that idea that if you can work without vscode you are a chief
Oh stupid me 🤦🏿♂️
175 Followers 154 Following💻 Software Engineer | Web & Mobile Dev 🚀 Building Selliy – where businesses can manage and track sales. 💼 DM for freelance/web/app projects
182 Followers 378 FollowingSoftware Engineering Student | Learning React & JavaScript | Aspiring Full Stack Developer | Exploring AI & ML with TechCrush | Open to Internship Opportunities
200 Followers 393 FollowingSudo_programmer👨🏾💻 || Student by day ,Programmer by night 💻 || Full_stack dev 📈 || Building LeadForge 💬 https://t.co/Vegb6iFJxA || Linux User 🐉
55 Followers 599 FollowingCrypto trader. Only private elite here!! I'll mainly talk about crypto market, price action analysis etc. ONLY FOR A FEW OF MY FOLLOWERS MAIN @arcanebear
60 Followers 31 FollowingHTML | CSS | JavaScript | PHP. Hopefully a laravel developer by November follow me and watch me grow. Don't follow if u're gonna unfollow
27K Followers 3K FollowingTOE Inspired | Techpreneur | Founder | TechFounder: Building DEXA @learnwithdexa | with 60k+ users and presence in Over 79 countries currently.
182 Followers 378 FollowingSoftware Engineering Student | Learning React & JavaScript | Aspiring Full Stack Developer | Exploring AI & ML with TechCrush | Open to Internship Opportunities
200 Followers 393 FollowingSudo_programmer👨🏾💻 || Student by day ,Programmer by night 💻 || Full_stack dev 📈 || Building LeadForge 💬 https://t.co/Vegb6iFJxA || Linux User 🐉
60 Followers 31 FollowingHTML | CSS | JavaScript | PHP. Hopefully a laravel developer by November follow me and watch me grow. Don't follow if u're gonna unfollow