Learning

Picture tag in HTML

The <picture> tag in HTML is a semantic element that is used to define multiple source images for a single…

2 years ago

How to use “where” with “pluck” in laravel?

Hello, Here is the quick solution: $categoryId = ProductCategory::where('id',$id)->pluck('categoryId')[0]; $parentId = ProductCategory::where('id',$id)->pluck('parentId')[0]; print_r($categoryId); print_r($parentId); Plucking it array index 0 as…

2 years ago

How to filter customers state array based on set of array of ids in javascript/reactjs.

Filtering customers state array based on array of ids in javascscript/react. const activeCustomerIdSet = [3,4,9]; //customers is array of customer…

2 years ago

How I have resolve, Module not found, Can’t resolve ‘optimism’

Hello welcome to this post. Straight to the answer, here it goes: Tried running first nextjs app λ npm run…

3 years ago

How to add Buy me coffee script dynamically into React application or Javascript

Stumble upon in the search of adding Buy me coffee script into react application land to the following wonderful hook…

4 years ago