Skip to content

Instantly share code, notes, and snippets.

@gkarugi
Forked from hofmannsven/README.md
Created May 22, 2017 12:23
Show Gist options
  • Save gkarugi/6fc301d4949fde27f311a422005296c0 to your computer and use it in GitHub Desktop.
Save gkarugi/6fc301d4949fde27f311a422005296c0 to your computer and use it in GitHub Desktop.
Notes on working with October CMS

Working with October CMS

Working with Laravel

Setup PhpStorm

CLI

Run: php artisan october:up

Use DotEnv setup: php artisan october:env

Clear cache: php artisan cache:clear

Themes

Install: php artisan theme:install theme-author.theme-name theme-dir

Activate: php artisan theme:use theme-dir

Plugins

Install & activate: php artisan plugin:install plugin-author.plugin-name

Plugin scaffolding

Create new plugin: php artisan create:plugin Foo.Bar

Create new component: php artisan create:component Foo.Bar Post

Debugging

Logging

Templating

Loops

{% for post in blogPosts.posts %}
    {{ post }}
{% endfor %}

Form validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment