Laravel I Made a Huge Mistake Last year I wrote three different articles. And I have to admit something… Repositories After reading Fowler's "Patterns of Enterprise Application Architecture", I found that I royally messed things up. Repositories actually
Security Add Variables to Your Password Reset Emails Laravel ships with a fairly nice default password broker. It creates an auto-expiring reset token, associates that with the user, and sends an email to the user all in one nice fairly
Laravel Make Laravel 4 Feel Like New After creating an API with Laravel 5 about a month ago, I was really liking the new directory structure and some of the features that were available. Today, I tried to replicate this
Action Domain Responder Multiple Front Controller Layers? In my persuit to continue making my code more maintainable and a bit cleaner, I have come across a new question with controllers. Is it ok to have multiple layers of front-controllers.
Laravel OOP API Responders The first thing that started getting me interested in a new way of emitting responses was listening to talks on hexagonal architecture. Essentially, having methods on a listener that would call a success
API Why I Am Deprecating Eloquent-Ember If you follow me, you know that I am heavily involved in both the Ember and Laravel communities. Thus, I have taken it upon myself to help define the development story for working
AJAX Clean Transformed APIs In the past, when working with Javascript libraries that required diffrent JSON formatting, I have base models that extended Eloqent and changed the toArray function. It was super hacky and required a ton
Ember.js Lose the Hash (Bang) Using Ember and Laravel Ember is all about your URL and keeping it up to date with your application. If you care about sharing, keeping your place, bookmarking, SEO, and more; you too should really care about
Laravel Proxies, Service Locators, Alias, Facades, and War There has been a recent resurgence of trolling the use of "Facades" in Laravel and in other PHP projects as well. The recent storm comes on the heels of a massive trolling of
Code Literate Programming Today, I finally read Jeremy Ashkenas's blog post on [Literate Coffeescript]() and really have to say, I agree with the point that he is trying to make. In essence, we as programmers
Code Your Framework isn't Magical I love working in Laravel, Symfony makes web apps awesome, Django does amazing things, Rails made frameworks cool. But, we have to keep things straight when working with frameworks. These aren't magical
AJAX Working with jQuery Ajax Uploader and Laravel PHP Working with jQuery Ajax File Uploader with Laravel can be relatively simple. However, things can be confusing on both sides when working outside of the regular examples from the site. To start things
GumbyCSS Working With Gumby Claymate and Laravel Another day, another project, another prototype to work with. If you are like me, you are probably sick of looking at Bootstrap every day for year. Things were only made worse with Bootstrap
Code The Mindset Behind App Toolkit After a while of working with Laravel and various MVC frameworks, I have found that there is a good bit of standard coding that goes into scaffolding applications. I'm not the first
Code Getting Inheritance Straight In the world of PHP, it seems like there has been a flurry of different inheritance and contract patterns being used. Unfortunately, a lot of developers seem to be running around like headless
Code Juggling Larger Laravel Applications When working with larger Laravel projects, one question always seems to come up: "How do I organize all of this code?" Many people have begun to suggest new ways to go about this.
Code An Eloquent Notification Strategy There comes a time in all of our lives where we want to deal with a heap of notifications to present to a user on a dashboard. This seems like it could be
Code Pivot Tables vs Pivot Models Lately, I have been working on multiple projects that have to deal with Polymorphic relationships, Many-To-Many, relationships, and the occasional Polymorphic Many-To-Many relationship. In working with these, a few
Code Ember JS and Laravel Hey guys, it's been a while since I have written something up and just wanted to give you a heads up on what I have been working on. Recently, I have been
Code Eloquent Connections - Making the World Go Round In yesterday's article, we looked at how Eloquent models boot up and how the constructor works. However, you may have been scratching your head when you saw that this massively powerful ORM
Code Per Your Request - Starting Eloquent There is a lot going on with Laravel's Eloquent ORM, but to start things off in this series, we will actually start things off and look at how Eloquent Models boot up
Code Eloquent Expertise Preview Eloquent ORM is probably one of features that draws the most users to Laravel. However, I find that after a bit of working with Laravel, many users don't quite get what is
Code Flexible Views For Laravel Packages Today we'll go over an easy topic, we will look at how to give your users the ability to swap out views in your Laravel Packages. Traditionally, you may develop a Package
Code The Repository Pattern in Action Two weeks ago, I discussed Two Design Patterns That Will Make Your Applications Better. Since then, there has been high demand for a demonstration of the Repository Pattern in action. Today, we'll
Code Creating an Installer Script For Your Package In Laravel, one of the big questions is how best install packages. Traditionally, we would create a nasty bit of readme that included a script that looks like this: php artisan config:publish
Code Laravel Package Database Flexibility - Eloquent Models As I begin to create more full featured Laravel packages, I find that I want to offer the ability for users to specify different database credentials for my package than the ones used
Code A Look at the FAQ Package The FAQ package came as a direct need for a dynamic FAQ section for the marketing site for iOffertory. Over the next few posts, I will dive into production code and give you
Code Next Week's Posts The last two weeks, I have tried to look at Routing a bit more indepth and have tried to suggest conventions that can help your code perform better and be easier to modify
Code Creating Customizable Packages With Routing Today we will look at starting to create Laravel 4 Packages with routing options. In conventional Package development in the past, you would have to create Bundle routes or ask your users to
Code Reusable Routes Finishing off the week of advanced routing in Laravel, I am going to mix the techniques while also covering a few more things and giving practical examples. In the last posts on routing:
Code The Wonder of The Config Folder Laravel is incredible for beginners, yet I find that a ton of developers posting comments on how "Laravel doesn't do XXX by default" so it can't be done and there is
Code Two Design Patterns That Will Make Your Applications Better Getting into design patterns can be a bit of a tricky subject. An analogy would be like having a kid interested in engineering go from playing with box cars to telling them to
Code A Wardrobe Overhaul Make your choice, adventurous Stranger, Strike the bell and bide the danger, Or wonder, till it drives you mad, What would have followed if you had C.S. Lewis Things today have been
Code Organizing Routes in Laravel 4 One of the big learning curves for creating Laravel projects is working with routes and how to organize everything in your project. Today's post is going to look at just this problem.
Code Multi-TLD Routing in Laravel While working with more advanced Laravel applications, you come to question how to work with more advanced routing circumstances. Laravel 4 gave a ton of features with the more advanced features in route
Code An Easy Way To Test Eloquent Model Attributes When testing Models, it can be a bit confusing where to start. But a great way to start is to test the attributes available in your Model. For this, I suggest the following.