OpenLampTech issue #75
Autoloaders and namespaces in PHP | Laravel self-referencing models | WooCommerce store editing snaps. Just as you have come to expect, OpenLampTech delivers each and every week.
Thank you for reading the OpenLampTech developer newsletter!
If someone fantastic shared this newsletter with you and you are not yet subscribed, please use the Subscribe button below and join:
OpenLampTech has sponsorship opportunities in the weekly newsletter for your brand, product, or service. As a starter publication, collaboration is very budget-friendly. Inquire by email at openlamptech@substack.com for more information.
Recently Published on the Digital Owl’s Prose Developer Blog
Another interesting question I recently saw in a WooCommerce Facebook group post was where the shop owner wished to limit the number (quantity) per product a customer could add to the Cart and purchase. I decided to research it and come up with a solution. Keep reading and learn this one with me!
All commentary is by me unless otherwise quoted.
Unlocking the Power of Laravel’s Eloquent ORM: 9 Hidden Features You Need to Know
I'm definitely of the camp to not always solely depend on an ORM. But, Laravel's Eloquent ORM sure has a lot to offer (from what I can tell). This post highlights some of the features that might not be readily apparent.
Hierarchical relationships in databases are nothing new. This can typically be seen in an employee database where both employees' and managers' data are stored. Laravel has Model traits that can be useful for these types of self-referencing relationships.
How to Manage Databases With Ease Using phpMyAdmin
I use both phpMyAdmin and MySQL Workbench a lot. Each has its own strengths (and weaknesses). Not comfortable with MySQL Workbench? Give phpMyAdmin a try. Works right in your browser.
(WooCommerce) Store Editing Snaps: March 27 – April 7
So far, my learning in WooCommerce has been in the traditional sense. Meaning, non-block-based development. However, I know the direction WordPress (and WooCommerce) is heading so I'm definitely paying attention to the block development in WooCommerce and these Store Editing Snaps summarize them nicely.
📰 Get your brand, product, or service the attention it deserves with affordable classified ad placement in the OpenLampTech newsletter.
WooCommerce Checkout Fields Customization Guide
I'm learning so much about WooCommerce customizations and even plan to offer services for this very soon. The Checkout page is probably the most important one of the entire online shop. Use this 'bible' to customize it galore!
Things DBs Don't Do - But Should
One of the best articles I've read in a long time concerning databases as a whole. For all that they can and do, there are some things they don't or can't do. As covered in this article, version control is just one of several but not the only one.
Use autoloading and namespaces in PHP
You can't really get anywhere these days in application development without using these 2 features. Based on my understanding, 1 makes sure your class(es) are available in the file while the other keeps name clashing from happening for same-named classes. Very important.
Interesting Tech News and Articles 📰
Linux kernel logic allowed Spectre attack on 'major cloud provider' (04-14-2023)
A Step-By-Step ChatGPT Guide to Build The Perfect Newsletter For Your Audience
WooCommerce News and Updates
WooCommerce 7.7 Beta 1 Released
[#Classifieds and Click Ads]
🤝 OpenLampTech earns a small commission (or payment in some form) from many of these links. Your support helps keep the weekly OpenLampTech newsletter free for readers.
Any Web Squadron Mastery Modules can help you with your online web entrepreneurial endeavor(s).
We make incorporating a company as easy as possible so that you can focus on the essential things. Visit IncFile today.
Get a handle on everything Google Analytics 4 with this course from the folks over at The Content Technologist.
Thank you for reading. I hope you have a great rest of your week.
Take care.
Joshua Otwell
When you are ready, here are more ways I can help...
WordPress Services - Initial website setup, blog management (writing and editing), small WooCommerce customizations, email (newsletters, marketing, copywriting).
Interested? Great!
Just hit Reply and ask for more information about any of these services.
OpenLampTech is a reader-supported publication. You can support the publication with a virtual coffee for as little as $3 (USD).