Both decodeURI() and decodeURIComponent() are Javascript global functions that are used for decoding encoded URI (Uniform Resource Identifier). decodeURI() function: It decodes a string [...]
Here is the complete list of available replacements: (Examples given with 2017-01-05 17:04:05.084512) Code Example Description OD 5 Day number with alternative numbers such as 三 for 3 if locale [...]
Introduction The correct minimum set of headers that works across all mentioned clients (and proxies): Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache Expires: 0 [...]
Consider that we have the follow URL in our address bar: https://www.domain.tld/path/to/something?query=data&anotherQuery= Get the current URL without query string request()->url(); [...]
Introduction Most users at one time or another have dealt with hierarchical data in a SQL database and no doubt learned that the management of hierarchical data is not what a relational database [...]
Definition An orthodromic or great-circle route on the Earth’s surface is the shortest possible real way (distance) between any two points. The Formula Ortho(A, B) = r x acos[[cos(LatA) x [...]
Definition The haversine formula is an equation important in navigation, giving great-circle distances between two points on a sphere from their longitudes and latitudes. The Formula a = [...]
One of the cool things about MySQL 5.7 is the fact that it supports a few spatial convenience functions (since 5.7.6), allowing one to do operations on geometric values. One of those convenience [...]
Laravel’s task scheduling features are well documented and give you the full power of cron in a fluent API. The documentation covers most of what you need to get up and running with the [...]
What’s the easiest way to sort array with accent? Since PHP 5.3 you can use the Internationalization extension (intl). It’s a wrapper for ICU library. So you have to check the PHP [...]
Composer is dependency manager for php package. PHP developers are known about packagist and composer. Most used php composer commands that will be helpful for you. # require require is the most [...]
Developing Composer packages locally through a local file symlink speeds up development immensely when you want to create Laravel packages and try them out on a real application. I was reading [...]