Check unless condition in custom if blade directive in Laravel
January 20, 2020 — Laravel’s Blade::if()
method already comes with the following directives in order to check various conditions in blade template files.
A blog on PHP, JavaScript, and more
January 20, 2020 — Laravel’s Blade::if()
method already comes with the following directives in order to check various conditions in blade template files.
January 15, 2020 — Sometimes, it’s convenient when you could get to access class objects as arrays. For instance, the time when one of the class properties is of type array and you want to manipulate it just like you’d do with an array without exposing it during object creation. I’ve included a real world example of where this could be useful, at the end of the article. So, read on!
January 13, 2020 — My thoughts on why it would be a good idea to be more like a terminator and less like a human.
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.