Looping through an object to get its properties and values

In case you have an object and need to loop through all its keys or properties and its related values you can use the following syntax

Array unique values

In order to get the unique values from an array , there are many ways, through using Set , or filter() method on array values or other methods.

Elasticsearch different url examples

Here are a sample list for different operations you might need to do with elatsicsearch indices.

Deleting and re-index an elasticsearch index in Laravel

If you need to change the mapping of an elasticsearch index, then you have to remove it first and then re-create and re-index it again. Here is how you can do this in a Laravel application.

Respect line breaks when display any text (like comment or snippet) [need content]

Respect line breaks when displaying any text depending on your line breaks when typing your comment or your snippet

Git famous commands

Here is a list of the most commonely used Git commands, that no one can use Git without.

Making the footer always at the bottom if there is little or no content in the page

Sometimes you will need to show the footer at the bottom of the page when there is little or not content. and not directly after the contents because this makes the footer alittle bit lifted up and not elegantly shown on the page.

Pass current data id from anchor tag href to bootstrap model

Pass current data id from anchor tag href to a button in a bootstrap modal - Example (delete confirmation modal)