How To Get Started With Eloquent In Laravel

How To Get Started With Eloquent In Laravel

Eloquent makes use of the Active Record pattern adored by software developers far and wide. Active Record was originally named by the software developer Martin Fowler when he discussed it in his book titled Patterns of Enterprise Application Architecture. It is a pattern where an Object maps to a table in a database. The object’s properties usually correspond to the columns in the given table. It’s a convenient and easy to use pattern, and Eloquent is a great version of active record.…

Getting Your Database Set Up For Use With Laravel

set up laravel database

Now that we’ve covered the most simple introduction to Laravel, let’s take a moment to get ready to work with a database so we can make use of the Query Builder or Eloquent. You have many options to choose from such as sqlite, pgsql, redis, and mysql. MySql is far and away the most used option, so that is what we’ll look at here. In addition, we can work with the database via the command line, or from a graphical user interface such as phpMyAdmin.…

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