Practice of using the "State" pattern
The State pattern is one of the best way to add business logic to a model and define ways to manage its state without violating the principles of clean code.
In this section you will find useful information regarding programming with Vtiger CRM, Laravel and Wordpress.
I like to write how I solved certain difficulties and share interesting features with the developer community. Here you will find solutions to various tasks in Vtiger CRM and Laravel. If you have any questions - ask!
The State pattern is one of the best way to add business logic to a model and define ways to manage its state without violating the principles of clean code.
There is a small bug in the Customer Portal - when trying to download files, an error occurs, as a result of which the user receives a file of zero size. The bug is reproduced not in all cases, but only when trying to download files with incorrect syntax in the file name.
PHP 8 introduced us to a new expression - 'match' - very powerful functionality that will often be a great alternative to the 'switch' statement. I say "often" here because both match and switch have their own uses, often not overlapping with each other. So let's take a look at the differences between the two.
Not everyone likes the standard login window in Vtiger CRM. Especially with advertising. I want something simple, with a laconic and minimalist design. Moreover, it is very easy to do it. It is enough to edit only one file - layouts / v7 / modules / Users / Login.tpl. Below is an example of my file, which I most often use when setting up Vtiger CRM for my clients. On the screenshot for this post, you can see an example of How the authorization window looks after the edits.
Often in the process of developing APIs with Vtiger CRM, I had to deal with one very unpleasant situation - we delete any record from CRM, while related records are not deleted. They have to be removed separately through additional requests. And this makes the process of deleting all records very long and hard to implement.
My most popular posts
I started my own business and intentionally did my best to work from anywhere in the world. Sometimes I sit with my office with a large 27-inch monitor in my apartment in Cheboksary. Sometimes I’m in the office or in some cafe in another city.
I have been working at a remote place for a long time - about 10 years. During this period, I implemented about 7 projects and provided dozens of consultations.
I am a programmer. I am an entrepreneur in my heart. I started making money from the age of 11, in the harsh 90s, handing over glassware to a local store and exchanging it for sweets. I earned so much that was enough for various snacks.
Developed an interesting application for learning foreign words using flashcards. You can download it for free, deploy it on your server and use it. Made with Laravel + Vue.js. Create your own vocabulary list or import list of popular words. Learn words anytime, anywhere. You can watch a video by clicking on image
I will make time for your project. Knowledge of Vtiger CRM, SuiteCRM, Laravel, Vue.js, Wordpress. I offer cooperation options that will help you take advantage of external experience, optimize costs and reduce risks. Full transparency of all stages of work and accounting for time costs. Pay only development working hours after accepting the task. Accept PayPal and Payoneer payment systems. How to hire professional developer? Just fill in the form
I usually get a call back within a few hours. But if I have a heavy workload, I may call you back the next day. So please be patient. Or if you have an urgent question, you can call me directly. I will do my best to help you.
Or just call: +79876757777
Telegram: @sergeyem