How To Pass Data To Views In Laravel

How To Pass Data To Views In Laravel

In this tutorial, we’ll start looking at how we can take variable data, and pass it to our views to be rendered in the Browser. This approach adheres to the Model View Controller architecture. In this most recent series of tutorials on Laravel, we have not yet talked about Models that typically deal with retrieving data, but we have covered the basics of Routing and Views.…

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.…