Dealing with Exceptions in a Laravel API application

Exceptions are a very important method for controlling the execution flow of an application. When an application request diverges from the happy path, it’s often important that you halt execution immediately and take another course of action. Dealing with problems in an API is especially important. The response from the API is the user interface […]

Continue reading...

Using Controllers in Ember

Last week we looked at Ember Routes. The Route is responsible for providing the model data, selecting the controller and rendering the template. The Controller is an important and well recognised component of the MVC paradigm. Controller’s in Ember sit between the Template and the Model to deal with logic and properties that do not […]

Continue reading...

Working with Routes in Ember

Last week we looked at the basics of routing in Ember. Routing URLs is one of the core components of a framework because it is the URL that drives the behaviour of the application. I mentioned last week that you don’t always have to specify things in Ember because certain defaults will be assumed. This […]

Continue reading...

Routes and Resources in Ember

URLs are very important in just about every type of web application. A well designed URL scheme should describe the user’s location within the hierarchy of the application. In a modern web application, the user should be able to navigate by either taking an action through the user interface, using a browser function or typing […]

Continue reading...

Using Templates in Ember

Last week we looked at setting up an Ember application as part of an existing Laravel repository. Ember is a front-end framework that makes building interactive client-side applications much easier than rolling your own Javascript. One of the core components of Ember is it’s templating engine. In today’s tutorial we will explore the Ember templating […]

Continue reading...

Getting started with Laravel and Ember

Over the last couple of years, the user experience bar for modern consumer and enterprise web application has risen steadily. Users now expect immersive, responsive and interactive user interfaces that respond and adapt to their input and requirements. Front-end Javascript frameworks are all the rage these days. These frameworks provide a lot of the functionality […]

Continue reading...

Creating a New Post Application Service

Last week we looked at building an Application Service for creating new Thread objects. However, a thread is not very interesting without any posts. This week we will look at building an Application Service to create new Post objects. Create a new Post object is quite similar to creating a new Thread object as there […]

Continue reading...

Creating a new Thread Application Service

An important aspect of the functionality of Cribbb is the ability to create new threads. A thread is a topic of discussion within a Group. There are some important business rules around starting a new thread, and so we need to ensure that we enforce these rules through the objects we write. In today’s tutorial […]

Continue reading...

Creating the Follow a User Application Service

A very important part of modern consumer web applications is the ability to “follow” another user. The functionality to build a social graph within an application allows the user to curate their own experience with your product. A user is also more likely to keep coming back if they can focus their experience with your […]

Continue reading...

Setting up a Password Reminder Service

In last week’s tutorial we looked at building out the User Registration Service. The Application Service provides a public API to the functionality and deals with basic validation of requests and dispatching Domain Events. The Application Service passes the request to the Domain Service to do the heavy lifting of enforcing the Domain Rules and […]

Continue reading...