Basic Laravel Routing and Views

basic routing and views in laravel

Routing is really the first thing to look at when working with a Laravel application. When we say routing, what we mean is that when a hyper text transfer protocol request is made of a site, the router is what determines how to handle that request. In this simple tutorial we will look at how Laravel handles the incoming http request, and then in turn how it presents a webpage to a site visitor.…

New String Methods In ES6

New String Methods In ES6

One area of JavaScript has definitely needed some help with in the past is working with strings. Traditionally, there hasn’t been a lot of built in methods to deal with common string processing scenarios. You could get things done with regular expressions just fine, but it would be nice to have methods dedicated to string processing much like covered with all of the PHP String Functions.…

ES6 Sets and Maps

es6 sets and maps

ES6 includes two data structures which help programmers get work done without reinventing the wheel. These two data structures are those of Sets and Maps. A Set can be thought of as a collection of elements which are both unordered, and unique. That is the key to remember. The purpose of a Set is to guarantee the uniqueness of it’s items. A particular element is a member of the set, if the set contains the element.…

9 New Array Functions in ES6

new array functions in es6

There are many new extensions to the array object in ES6. In this journey of learning the foo of ES6, we will set our targets on mastering the ways of new functions like Array.of(), Array.from(), Array.fill(), Array.find(), Array.findIndex(), Array.copyWithin(), Array.entries(), Array.keys(), and Array.values(). These new functions make it easier to fill up arrays, or find data within them. In addition to that it is now easier to work with specific keys and values in the array itself.…

ES6 Generators

es6 generators

Generators in ES6 are a special kind of function that return an iterator. They are quite a bit different than your standard run of the mill function in JavaScript however. Generators can pause themselves as they are running, and return multiple values as execution pauses and resumes. You use an iterator to call a generator multiple times. Let’s look at some examples to better understand how generators work.…