Many to Many Relationships in Laravel


Many to many relationships use the belongsToMany paradigm and can be a little tricky at first as they are a bit more advanced than the hasMany and belongsTo relationships, but once you spend some time digging into them, they are not as bad as they first seem. Many to Many relationships are everywhere out in the wild. They can be implemented by hand or in a variety of different languages and frameworks.…

What is a Laravel Interface?

What Is A Laravel Interface

In Laravel, an interface is a contract for what methods will be used in a specific class. Actually, interfaces are not specific to Laravel, or even native PHP for that matter. Since we’ve been on a roll with Laravel, we’ll talk about interfaces in Laravel. Let’s investigate what interfaces are and why we might want to use them, let’s jump in!

When would I want to use an Inteface?

What is the IoC Container in Laravel?

Laravel IoC Container

So you’re learning Laravel you say? Well what is this IoC Container you speak of?! For a lot of us PHP programmers, we may not be familiar with this concept, but thanks to Laravel, proper software engineering is being brought into the PHP world. By getting a handle on what and how the IoC Container works in Laravel, we’ll have a better understanding of how Laravel provides the magic that it does when coding.…

JSON in Laravel


If you know the name Douglas Crockford, you know JSON. Mr Crockford is a Chuck Norris of sorts in the Javascript world and created the JSON standard. It stands for JavaScript Object Notation and it provides a great way to share data between languages and applications. Douglas I’m sure is proud of his baby, and we can thank him for declaring himself a standards body and bringing JSON into existence.…

Laravel Eloquent ORM Tutorial


Eloquent is the very powerful and expressive ORM or Object Relational Mapper in Laravel. If you know how to work with Objects in PHP, then you know how to use Eloquent! Well, it’s not *quite* that simple, but we do have the most expressive syntax yet in PHP for working with Models by way of Eloquent. You may also enjoy our How To Get Started With Eloquent Tutorial.…