Author: Povilas Korop

What Server is Needed to Deploy Laravel Projects

One of the final steps in every web-project is deploying to live server. Often I see a problem when server is provided by the client from their hosting they had purchased long time ago, and it is not suitable for convenient Laravel deployment. So in this article I will make some recommendations for clients, what hosting to prepare.

Wednesday, July 11th, 2018

How to Send Email From Laravel, and Why We Need 3rd Party Providers For It

Sending email is a typical function for most web-projects: notifications, password reminders, invoices are done via email. But in recent years we’ve faced a technical problem. It’s not about just sending emails anymore, it’s about delivering them successfully.

Monday, July 9th, 2018

Laravel Excel Export: Formatting and Styling Cells

Laravel-Excel package is great for exporting data. But not a lot of info there about formatting Excel cells – widths, word wraps, fonts etc. So when I encountered this in a client’s project, I decided to write this article with a few tips on this topic.

Tuesday, June 26th, 2018

Matt Stauffer: “Is Laravel Enterprise-Ready?”

With Laravel Live UK 2018 being over (awesome event, thanks Jonty!), I want to share my recap of one particular talk. Matt Stauffer has expressed his thoughts about Laravel in enterprise world. Is Laravel good enough? Let’s find out and discuss.

Tuesday, June 12th, 2018

Using Asana API in Laravel/PHP

Recently I’ve started a new client project which uses API of a project management tool called Asana. So I decided to write up a short demo for anyone who wants to use it, it’s really simple.

Tuesday, June 12th, 2018

Laravel-Excel 3.0: Export Custom Array into Excel

Recently popular package Laravel-Excel released a new version 3.0, which was a pretty radical change from previous versions. I needed to do a simple Excel export and noticed that their documentation covers only export from Laravel Collections but not from some custom structure. So I will show you a “workaround”.

Tuesday, June 5th, 2018

How to (Easily) Create a Custom Validation Rule

For some reason, only now I’ve found out about a feature that was introduced in Laravel 5.5 – artisan command that makes your validation rule, similar to Request classes. Let’s see it in action.

Wednesday, May 30th, 2018

How to Save User’s Last Login Time and IP Address

Quick tip of the day. Default Laravel Auth comes with User table and model, but without logging capability, so we need to build it ourselves. Fortunately, it’s very easy, I will show you one method.

Sunday, May 6th, 2018

Laravel Exceptions: How to Catch, Handle and Create Your Own

Quite often web-developers don’t care enough about errors. If something goes wrong, you often see default Laravel texts like “Whoops, something went wrong” or, even worse, the exception code, which is not helpful at all to the visitor. So I decided to write a step-by-step article of how to handle errors in elegant way and present proper error information to the visitor.

Monday, April 23rd, 2018