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

Posted in octobercms, php, 后端 on Apr 16, 2018

请登录 登录 评论!