Task App with Laravel 5.3 and VueJS

In this tutorial we’re going to build a simple task app with Laravel 5.3 and Vuejs. You will learn:

  • How to get Vuejs up and running with Laravel 5.3 using Gulp

  • How to work with Vue Components (.vue)

  • How to make API calls with Vuejs

  • How to handle information coming from the server

  • The general workflow between Laravel 5.3 and Vuejs

I assume that you already know Laravel and the basics of Vuejs, especially the concept of components. If not, head to the documentation to get an idea of what we’re building here.

The full code is hosted on Github.

Continue reading Task App with Laravel 5.3 and VueJS

Simple Payments with Stripe and Laravel

In this article you will learn:

  • How to configure Stripe with Laravel

  • How to make single charges through Stripe

The example project is a website where you can sell digital products, like ebooks or audiobooks. The user can sign in and pay through Stripe. An administrative area will show the order information.

The full code is hosted on Github.

Continue reading Simple Payments with Stripe and Laravel

Introduction to Repository Pattern with Laravel 5

In the Repository Pattern we create a layer between the data access logic and the business logic. You can use this approach to overcome the problem of having data and business logic in the controller.

The result of a traditional MVC approach generally is “dirty” controllers. In practical terms, it means that there is a lot going on in the controller, making it hard to test, scale and reuse the components.

This tutorial is an introduction to the Repository Pattern with Laravel. I assume that you are familiar with the basic of Laravel and concepts such as Inheritance and Interface.

You can also check the full code on Github. Continue reading Introduction to Repository Pattern with Laravel 5