Author: Povilas Korop

new password

Laravel password expired: force change password every 30 days

In some systems it is required to change password every X days: in banking sector, or working with more sensitive data. Laravel doesn’t have that functionality out-of-the-box, but it’s easy to build. Let’s do it today.

Tuesday, September 26th, 2017


Change created_at and updated_at names to other fields

Let’s imagine a scenario where you have an old database and re-writing codebase to Laravel. Database structure may not follow Laravel standards – created_at and updated_at fields are named differently. How can you “tell it to Laravel”?

Tuesday, September 19th, 2017


Datatables stateSave option: “remember” search and filters

Not Laravel related, but today encountered the situation, so sharing with you. You probably know Datatables, right? It allows to quickly search and filter the table of data. But what if user then navigates away (for Edit, for example) and then wants to go back and have the same search parameters he had before? Easy.

Tuesday, September 19th, 2017


How to convert WordPress theme to Laravel Blade

Laravel is a back-end framework, but most web-projects still require a front-end theme. And there are no sites with “Laravel themes”, all front-end themes are mostly based on WordPress CMS. But it shouldn’t be a problem – we can easily transform a WP theme to Laravel Blade. We often do that for our clients, so I will show you a simple example.

Monday, September 11th, 2017


Learn Laravel from YouTube: 9 Playlists/Channels to Watch

Laracasts is the no.1 place to learn Laravel, no doubt. But if you don’t want to pay for subscription or just like to use YouTube, there are people who can teach you there. I’ve searched through YouTube and picked the best ones, in my opinion.

Sunday, August 27th, 2017


BelongsTo Default Models: No Need to Check in Blade Files

I’ve recently found out about a feature in Laravel relationship which changed the way I write code. So sharing with you.

Monday, August 7th, 2017

best tools

Survey Results: Top Server Tools Used by Laravel Community

A few days ago I started a survey about the tools that Laravel people use. I’ve spread the word on Twitter, and asked some people via Direct Messages, so got 52 responses. Here are the answers to 5 questions I asked.

Wednesday, July 26th, 2017


Resource Controllers for API: How to Remove create/edit methods?

Resource controllers are great for CRUDs, but if we use them for APIs, there are two unnecessary methods – create() and edit(), cause there are no visual forms for it. So how to remove them from routes? There are two ways.

Monday, July 24th, 2017

laravel resource controllers

Resourceful controllers: overriding route names and parameters

Resource controllers are amazing tool to work with CRUD functions in Laravel. But what if their default functionality isn’t 100% suitable and you want to override some defaults? Let’s see what you can do.

Monday, July 17th, 2017