27 Sep 2013

Unit testing packages with Laravel dependencies

Unit testing Laravel 4 projects is usually pretty simple and straight-forward. However, if you're developing a package that depends on Laravel 4 components, this can get a little tricky. In this article we'll explore an example I've run into recently and what I did to get around it. Consider this article more of a discussion piece, as I am quite open on how to do this in a better way! Read more

10 Sep 2013

Making the Paginator API-friendly in Laravel 4

A while ago I wrote an article on how you can build pagination with Angular JS and Laravel 4. I missed one critical piece, that being; how the paginator can actually be consumed by simply returning it from your controller action. In this article we'll go through how you can update Laravel 4's Paginator without touching its code, and ensuring that you can use it as easily as I do. Read more

18 Aug 2013

Laracon EU - PHP event of the year!

It isn't very often I get excited about conferences and events - but Laracon EU, despite it's name could very well be the PHP event of the year. The reason is because Laracon isn't just about Laravel, it's about PHP technologies and practises in general. Read more

16 Aug 2013

Data, *Context*, Interaction - the DCI design pattern in PHP 5.4

The DCI design pattern in PHP in the past has only been plausible. But thanks to PHP 5.3 and 5.4, it's now possible to implement the pattern and along the way, demonstrate just how expressive PHP has become in the past 2 years. There are many ways to implement the DCI design pattern, but in this article I'll show you how I've done it - and how you can use it in your own PHP projects, including how to tie in with Laravel 4. Read more

15 Aug 2013

Pagination with Laravel 4 and Angular JS

Pagination on the server is a pretty easy task to accomplish. As applications move more and more to the front-end, we have to find new ways of solving old problems. Pagination on one-page applications is no different, but it's really not that difficult. In this article I'll demonstrate just how easy it is do pagination using Laravel 4 and Angular JS. Read more

10 Aug 2013

An alternative application workflow in Laravel 4: Part 2

In my previous article, we explored an alternative method for our workflow in Laravel 4 for medium-large applications. Here we'll explore this in more depth, by looking at the steps and code required to make such an application arrangement work well and to ensure that communication between the packages makes sense. Read more

27 Jun 2013

Angular JS: Using ngResource in a more RESTful manner

ngResource is a fantastic RESTful library that you can easily inject into your Angular JS services to create easy-to-use, API-driven data requests. However, it falls over if you're trying to maintain good RESTful practises, such as PUT operations for updates, and POST for create. How can we manage this in a more autonomous way? Read more

17 Jun 2013

An alternative application workflow in Laravel 4

Laravel 4 provides a great deal of convention when developing your applications, but for large applications, or applications that share components - this becomes unwieldy and can affect both your workflow, and your productivity. In this article, we'll explore an alternative application structure using packages and the workbench. Read more