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
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
Software Architecture Everything is a Trade-off In development, everything that we do is a trade-off. Sometimes, we don't act like it is, and we are lying to ourselves. Languages are a trade-off I spend almost all
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.
Software I Am a Web Application Developer There's been a new discussion over what to call yourself when describing what you do as a developer. I've sort of even bloged about it in the past. Over the last
Git The Dangers of Rebasing A Branch When working with git, updating a feature, bug fix, or release branch to the latest version of the main branch can be tough. There are two ways of looking at things: Merging Rebasing
Caching A Different Way of Thinking About Nested Caching So, I do have to start off and say that I have not implemented a Russian Doll Caching solution. This article is highly theoretical and just meant to start a conversation about a
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
Business Embracing Control Schemes Everyone keeps complaining that Nintendo is stuck in the past. It's a console where their game design in many cases seems stuck in the super nintendo era with a few little nods
AJAX File Uploads in Ember JS Probably one of the biggest issues that I've had so far with our latest Ember projects has been working with has been getting a good way to upload files on an Ember
Code Get More Content Into Your Ember Apps Working is extremely nice once you have a grasp on the basic concepts. But, one of the coolest promises (some pun intended) is the ability to use the render view helper. At its
Code We Are Complicating Things a Bit too Much (TDD & DDD) The other day, I saw something that really encompasses one of the biggest hurdles for younger developers to get through. That hurdle is terminology. These days, there is all sorts of "___ driven
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
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 I'm a Professional Developer and So Can You Today in @PHPDrama land there was a divergent schism in the Drupal world. This isn't the first time that a simliar argument has been brought up in the PHP community or the
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
Software Repositories - Not Everything is a Nail I feel that Taylor and I may have led some of you astray in the Laravel community. After a few posts about dependency injection and the Repository pattern, it seems as if it
Code A Response to "Why I Chose Ember.js" Yesterday, I wrote what became a rather controversial post. I did want to address a few a things that have come up between Twitter and the comment stream. So, here we go. Firstly,
Code Why I Chose Ember.js Clarification This article has been edited to reflect time spent with each framework and a few other relevant facts I have finally made the plunge to really dig into Ember.js. But, if
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
Software Stop Being Afraid Of Old Technologies Let's face it, web-design has had some huge anti-patterns to grow out of. Luckily, I started a bit later in the game where things like the new HTML5 and CSS3
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 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 Java You've Done CS 101 a Disservice In a continuation of my thoughts from last week's post on method overloading, I thought that I would keep bashing Java with a large hammer. Plus, who doesn't like bashing on
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 Why Method Overloading Can Signal Bad Design Coming from Java and C++ and moving into PHP and Javascript, one of the problems that I ran into was the fact that PHP and Javascript don't have traditional ways to overload
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.
Code Shut Up, You Are Already Testing Your Code As a foray into the second week of bidaily posts, I aim to make even more people mad about TDD. See, the first time you made a program you were doing some form
Code Red-Shirt, Red, Green, Refactor - A TDD Fairytale This week saw my first major TDD project. It started off without a hitch. A slow grind for sure, but my mocking was superb (at least for a beginner). That is, until I
Browser Embracing Safari as a Developer's Best Friend Ok, this article isn't really meant to start a war. What's worse, I'm not exactly backing one of the big dogs in the fight (Chrome and Firefox). But, there is
Code Creating Apps in Packages The idea of creating more sustainable code seems to be a topic of war in development communities these days. To one side, hackathon regulars throw together spagetified code that takes days to debug