on Wed, Oct 12, 2016 by Armen Markossyan · 3 min reading time
I’ve been recently interested in server-side Swift and stumbled upon the Vapor framework.
Vapor is a cool web-application development framework written in Swift. It’s partially inspired by Laravel / Lumen, so if you’re familiar with it, you’ll probably feel at home.
While the above information is true, there’re still some differences. As opposed to Laravel and its Blade templating engine, Vapor uses Leaf.
It’s new and sometimes lacks documentation, so I’ve decided to write this article and explain how to extend it.
Read more →
on Mon, Feb 08, 2016 by Armen Markossyan · 4 min reading time
There’re many good online stores with great usability, prices and good selection of products.
Owners of these stores spend money on ads, promote their stores here and there, invent creative campaigns and promos and do all other important stuff to make their stores successful. But there’s an obvious problem that some of them actually don’t notice and this problem is related to a shopping cart.
Read more →
on Wed, Jan 27, 2016 by Armen Markossyan · 4 min reading time
Sometimes programmers have to maintain and support legacy projects written in older versions of frameworks.
So do I. One of my projects still uses Laravel 4 and, unfortunately, there’s a bug in its Database package which sometimes causes an error when working with long running jobs.
Read more →
on Wed, Nov 11, 2015 by Armen Markossyan · 2 min reading time
In this article I’m writing about a simple library which does only one thing but really well.
Liner allows to easily and intuitively read (large) files line by line.
Read more →
on Thu, May 14, 2015 by Armen Markossyan · 3 min reading time
I suppose that most web-developers have met a problem of “fat” models at some point of their career. Even good developers following SOLID principles by keeping validation rules and other business logic out of models, sometimes face this problem.
Luckily, there’s a stupidly easy solution which I’ve never seen in any Laravel project before. That’s why I decided to write this short article.
Read more →
on Sun, Sep 21, 2014 by Armen Markossyan · 6 min reading time
In this article I’ll try to explain how to use the repository pattern in Laravel framework and why it’s useful.
Let’s start with a simple example. Here’s what a typical Laravel controller looks like:
Read more →