Validating dependent attributes in Laravel request
January 9, 2020 — There comes a scenario in your app where there are some fields in your form that are dependent on an another field’s state.
A blog on PHP, JavaScript, and more
January 9, 2020 — There comes a scenario in your app where there are some fields in your form that are dependent on an another field’s state.
January 4, 2020 — There are several ways to iterate over things in JavaScript. Most notable way is to use loops. Loop constructs includes for
, forEach
, do...while
, while
, for...in
and for...of
. All these constructs loops over synchronous iterables such as arrays, objects, strings etc.
December 30, 2019 — The other day, there was a situation where I needed to implement a multiselect configuration setting in my Magento2 application. So, I thought of documenting the process. So, the scenario was to implement a setting which enlist all the product attribute set and all those can be multiselect-able. Here’s how I did it.
December 29, 2019 — Podcasts are a great way to listen to the people you like who talk about the things they are specialized in. I’ve recently started listening to a handful of technology and non-technology podcasts on Google Podcasts while my commute to office and back. I’m going to compile down all the best tech podcasts that I’ve subscribed to and listen to daily.
December 23, 2019 — JavaScript is not a statically typed language. A language is a statically typed if the type of a variable is known at compile-time instead of at run-time. Common examples of statically-typed languages include Java, C, C++, Swift, Kotlin and Scala.
December 22, 2019 — When using React component using ES6 classes, you must have encountered this phenomenon where you have to explicitly bind the class function and then pass it to the even such as onClick
. For instance, take the following example.
December 18, 2019 — Working with PHP, it would be pretty obvious you’d be worried about the performance of your application. And because of this anxiety, you start to optimize trivial things such as replacing double quotes(“) to single quotes(‘), use echo
instead of print_r
, or using static methods in order to gain those little performance gains during the initial few days of your application development itself. Optimizing these thigs is good and all.
December 16, 2019 — In this short article, I’m going to explain what method chaining is and how it can prove to be useful as an object oriented design pattern.
December 13, 2019 — It’s hard to choose a platform for blogging in 2019. Why? Because there are so many to choose from. Wordpress, Ghost, Hugo, Gatsby, eleventy and what not! The choice is endless. It will ultimately comes down to the fact that which platform you’re more comfortable with. Be its setup, maintenance to the community support and extensibility.
December 12, 2019 — The best thing about working with Laravel is finding an alternate way to do same old boring stuff every now and then. I came across something called as “Higher Order Messages” while working with Eloquent recently. The feature has been in Laravel since its v5.4.