Twig using set to determine if a loop.index is odd or even
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
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:
OctoberCMS common command functions
Common commands
Themes and plugins have similar command lines. So rather than note them individually and miss clarity, the reference {type} can be replaced with the term plugin or theme.
install
php artisan {type}:install AuthorName.PluginName
list
php artisan {type}:list
clearing cache
At times while developing in October CMS, you will perform a step that kills the site. Recently, I had transferred the site to production and I was working through our steps to cross check deployment. This included reviewing the error logger plugin. The error logger has four tabs Mailer, Slack, Syslog and Relic.
migrating OctoberCMS plugins
Using October CMS to migrate your site and update the tables with the plugins run
php artisan october:up