Povilas Korop, Author at Laravel Daily

Author: Povilas Korop

Use Laravel Observers and Global Scopes to Create User Multi-Tenancy

Multi-tenant application are pretty common these days, where database are entries can be accessed only by users who created them. In this article, I will show the simplest way to achieve it in Laravel.

Saturday, August 11th, 2018

Validate Max File Size in Laravel, PHP and Web-Server

I got this question at least a dozen times: “I’m raising my file validation rule in Laravel to 20 MB but still get errors, it doesn’t work”. So decided to expand on it and explain the reason, and what to do.

Thursday, August 9th, 2018

How to Change Date Format in Laravel and jQuery UI DatePicker

One of the most often things to change in web-projects is adapting it to a certain geographical area – language and timezones are two examples. But also there’s a date format, which can be pretty different in certain parts of the world. How to handle it properly in Laravel?

Wednesday, July 25th, 2018

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