Author: Povilas Korop

datatables

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

wordpress

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

YouTube_logo

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

default

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

api

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

additional

Adding unspecified GET parameters to Routes

A quick tip for the case if you need to add additional GET parameters to your route URL, but don’t want to specify them in Routes file. Apparently, there’s a simple way.

Monday, July 17th, 2017

testing

Automated Testing: 6 Open-Source Laravel Projects

Recently I became much more interested in automated testing – PHPUnit, TDD, Laravel Dusk, Travis and other keywords became “closer”,

Tuesday, July 4th, 2017