Skip to content

Instantly share code, notes, and snippets.

@rchytas
Forked from hofmannsven/README.md
Created May 15, 2020 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchytas/02881b06ebb0d8b95453c9a1941badfa to your computer and use it in GitHub Desktop.
Save rchytas/02881b06ebb0d8b95453c9a1941badfa 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