Andrew Fletcher published: 10 November 2020 (updated) 11 November 2020 1 minute read
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
refresh plugins
php artisan plugin:refresh AuthorName.PluginName
Utility references
Clear cache
php artisan cache:clear
Clear config
php artisan config:clear
Restart your server
sudo service apache2 restart
Conprehensive list can be found on October CMS
Related articles
Andrew Fletcher
•
13 Feb 2021
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:
{% set direction = loop.index0 is odd ? 'left' : 'right' %}
In the call above, the variable direction is set to either left...
Andrew Fletcher
•
07 Feb 2021
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:
Sender name;
Sender email;
Mail method: (PHP mail, Sendmail, SMTP, etc...). I elected to go with SMTP;
SMTP...
Andrew Fletcher
•
14 Oct 2020
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...