PHP 7.2 and Object Typehint

Introduction

PHP 7.2 is around the corner.  On the 26th of October 2017, the 5th version of PHP Release Candidate has been announced, which was preceded by 3 alpha, 3 beta and 4 RC versions. First alpha version was announced on the 8th of June 2017 and the final version is about to be released by the end of November 2017.

If you are impatient and curious as I am, it’s right time to take a sneak peak at what PHP team is cooking for us. You can track all implemented features by studying PHP Request For Comments wiki page.

Without further ado, let’s explore the first feature together, an amazing Object Typehint

Continue reading “PHP 7.2 and Object Typehint”


If you enjoyed this post, then make sure you subscribe to my Newsletter

Is it beneficial to add Laravel Collective HTML package into your Laravel project?

Introduction

Laravel Collective is a set of components that have been removed from Laravel’s core framework and are no longer maintained by Taylor Otwell. Instead there is group of volunteers who decided to maintain following once famous packages:

In this tutorial, we are going to examine laravelcollective/html, trying to verify its usefulness in your future projects. Let’s start then!

Continue reading “Is it beneficial to add Laravel Collective HTML package into your Laravel project?”


If you enjoyed this post, then make sure you subscribe to my Newsletter

How to configure Push to Deploy with Envoyer

Introduction

It’s hard to not stumble across Envoyer, once you become the member of Laravel community. It’s advertised as Zero Downtime PHP Deployments and is one of many commercial products from Taylor Otwell, creator of Laravel framework.

I will walk you through the configuration of Push to Deploy. This means that whenever you push or merge your code into specified branch, Envoyer should detect it and automatically trigger deployment.

Keep in mind that Envoyer allows one project to be associated with exactly one branch from chosen repository.

Continue reading “How to configure Push to Deploy with Envoyer”


If you enjoyed this post, then make sure you subscribe to my Newsletter

How to replace Vue.js with React in Laravel 5.4

Introduction

As you probably experienced, Laravel 5.4 comes with Vue.js bundled and bootstrapped. For some developers it is equivalent of Laravel being coupled with Vue.js in some way. Hopefully it’s not the case. Laravel is completely agnostic when it come to JS frameworks and you are free to choose whichever you prefer.

Keep in mind though that Laravel’s community somehow fell in love with Vue.js, what is indirectly proven by following facts.

The good news is Laravel 5.5 will use frontend presets, allowing to remove not only Vue.js, but also Bootstrap with ease. Angular lovers must still use my method – unfortunately no preset for them on the horizon.

Continue reading “How to replace Vue.js with React in Laravel 5.4”


If you enjoyed this post, then make sure you subscribe to my Newsletter