Twig using set to determine if a loop.index is odd or even
Andrew Fletcher published: 13 February 2021 2 minutes read
Working in Laravel, I needed to loop through an array and know whether the current loop was odd or even row. To do this add the expression to your Twig file:
Getting SMTP mail working in October CMS
Andrew Fletcher published: 7 February 2021 3 minutes read
Setting up the mail configuration in October CMS is a quick progress. Depending on which mail method you use there are up to eight fields to complete:
migrating OctoberCMS plugins
Andrew Fletcher published: 19 September 2020 1 minute read
Using October CMS to migrate your site and update the tables with the plugins run
php artisan october:up
Installing Laravel on Apache
Andrew Fletcher published: 9 August 2020 (updated) 12 August 2020 10 minutes read
Installing Laravel on an Apache server was going to be a no fuss process said no developer! Research done. Documentation looks good and easy to follow. Time to load Laravel.
The set-up
The install notes on Laravel are easy to follow. Beginning with checking that your server is able to install Laravel.