Author: Povilas Korop


How To Upload Multiple Files in Laravel 5.4

File upload is one of the most commonly used features in web-projects. And it seems pretty easy – form, submit,

Thursday, February 23rd, 2017

Screen Shot 2017-01-25 at 12.44.51 PM

Eloquent: has() and doesnthave() – get only rows that have children

From time to time I write short tips about Laravel, and one of the most popular topics is Eloquent. It has so many “hidden” or poorly documented functionality, one of those is filtering parents by whether they have or don’t have children. Let’s see an example.

Wednesday, January 25th, 2017


Eloquent: Get the Latest Row from Relationship

Another “hidden gem” of Eloquent. Let’s imagine that you want to query all rows from the table and also one related row – not all of them, but the newest one. Apparently, it’s pretty easy.

Monday, January 23rd, 2017


83 Top Laravel Articles in 2016: What You Clicked in Newsletters

A little later than most “Year in Review” posts but it took some time to manually pick the most-clicked articles from our newsletter, there were 1000+ useful links from all over the web. Also I will mention authors with links to their profiles – let’s thank them for their effort! So, what topics were the most popular in 2016?

Friday, January 20th, 2017


Don’t forget to restart Tinker

Artisan Tinker is a nice way to quickly check some commands without making changes the code. You launch artisan tinker and can do things like database queries, check if some functions are working etc. But there’s one thing to keep in mind.

Thursday, January 19th, 2017


Where, WhereLoose and WhereStrict – did you know about them?

Some Laravel functions are not mentioned or emphasized in the official docs, especially if they change from version to version. One of these examples is simple where() in Eloquent – what do you think, does it compare in a “strict” or “loose” way?

Tuesday, January 17th, 2017


From Client Dev-Work to Your Product: 7 Tips to Change Your Mindset

Quite often developers and agencies get tired of client work and start creating their own products: internal tools, packages, maybe

Wednesday, January 11th, 2017


WherePivot and WherePivotIn – additional filters for many-to-many relationships

Recently I’ve found a small detail in Laravel documentation which I want to share with you. Apparently, it’s possible to filter pivot tables additionally, if needed. Let me show you how.

Monday, January 2nd, 2017

inspirational quotes artisan inspire

Want an inspirational quote? There’s Artisan command for that!

Web-development is not all serious – there are some fun activities too. So let’s have a break from mega-urgent code writing and get some inspiration. From our beloved Artisan – with a command “inspire”.

Thursday, December 29th, 2016