Category: laravel

Laravel and Braintree, Sitting in a Tree…

Subscriptions to services online are something extremely common – from subscribing to music streaming services to tutorial sites to access premium content. With Laravel 5, we saw the introduction of Laravel Cashier, an official Laravel package to help developers manage Stripe’s and Braintree’s subscr...

Voyager – Can an Admin UI Make Laravel Even More Approachable?

Today, we are talking about Voyager!Voyager is a Laravel package that provides a full administration system for the framework in its “skeleton app” form. Voyager has 4 main features:Media Manager – Built on top of Intervention Image, it provides a fully functional media manager that allow us to v...

Re-Introducing Jenkins: Automated Testing with Pipelines

As our applications become more complex – with Composer dependencies, Webpack build scripts, and per-environment variables – we inevitably reach a point where testing all of these different intricacies becomes slow and laborious, especially when you’re tearing down and rebuilding the entire environmen...

What Are Polymorphic Relations and How Do We Use Them with Eloquent?

While I was working on an application for a client, I had to implement a new module that entails the following:Users ask for a budget quotation for a certain task. Every task has a location. Professionals can subscribe to different zones. A zone can be a region or a city.Now, let’s neglect the core applicatio...

Let’s Kill the Password! Magic Login Links to the Rescue!

Authentication is something that has evolved over the years. We have seen it change from email – password combination to social authentication, and finally password-less authentication. Actually, more like an “email only” authentication. In the case of a password-less login, the app assumes that you w...

Quick Tip: The Convenient Magic of Eloquent Observers

If you’ve used Eloquent on medium to large projects before, you may have encountered a situation where you want to take action when something happens to your models. Eloquent provides a convenient way to do so.The Observer PatternThe observer pattern is a software design pattern in which an object, called the...

Interrupting Applications with Laravel Middleware

Before we launch into using middleware with Laravel, what is middleware? In general, middleware is software that connects different systems to one another. In Laravel, one of the most well known and robust PHP frameworks that are available for use today, middleware provides a way for you to filter out your HTTP request...

Extending OctoberCMS – Building a Soft-Delete Plugin

Developers usually stick with a new CMS for its simplicity and extensibility. OctoberCMS presents itself as a back to basics CMS, and provides an enjoyable experience for both developers and users. In this article, I’m going to demonstrate some aspects of the CMS that makes it extensible, and we’ll also try...

Build Your Own Dropbox Client with the Dropbox API

There are lots of file hosting solutions out there, but few things compare to Dropbox because of its simplicity, auto-sync feature, cross-platform support and other cool features.As a PHP developer you can even take advantage of their API in order to create apps that use its full capabilities. In this article, you&#...

2FA in Laravel with Google Authenticator – Get Secure!

There are many ways an attacker can get a user’s password. It could happen through social engineering, key logging, or by some other nefarious means. Passwords alone are not enough to protect users from their accounts being compromised, specially if an attacker somehow has their credentials. To get around this s...