PHP Frameworks

How To Get Total Result Count in Laravel Eloquent — step-by-step Programming tutorial on Progressive Robot

How To Get Total Result Count in Laravel Eloquent

When working with database query results, it is often useful to obtain only the total number of rows in a result set, instead of pulling the full dataset content with a regular query. Eloquent offers a few different aggregate methods that return a scalar value instead of an Eloquent object, such as count(), max(), and sum(). In this part of the series, you’ll update the main application view to show the total number of links in each list, using the count() method.

Read more
How To Install and Get Started with Twig on a VPS — step-by-step Linux tutorial on Progressive Robot

How To Install and Get Started with Twig on a VPS

If a PHP file becomes more complex (and it will for any application), you will have a big problem with managing the layout of your site. If you want a designer to work with it, this designer will have to search into this file which is what we want to prevent. So the solution is the separation of the presentation (layout) from the logic (programming) and the best way to do it is by using a template engine such as Twig.

Read more
How To Horizontally Scale a Laravel 4 App with a PostgreSQL Database — step-by-step Linux tutorial on Progressive Robot

How To Horizontally Scale a Laravel 4 App with a PostgreSQL Database

There are two methods to scaling an application, service, server, etc. The first, vertical scaling, calls for more resources to a machine. The second, horizontal scaling, calls for a separation of functionality to create a more piecemeal assembly of parts. This tutorial will show you how to horizontally scale a Laravel 4 App with a PostgreSQL database.

Read more
CHAT