PYROCMS – CheatSheet

I came across with PyroCMS project and I find it really hard in searching basic composer command. So I decided to compile and create a PyroCMS cheat sheet. This is not a complete guide but hopefully, you can make it as your reference.

Pyro – Laravel Development Platform

Upgrading

composer update
php artisan migrate --path=vendor/anomaly/streams-platform/migrations/application
php artisan migrate --all-addons
php artisan assets:clear
php artisan cache:clear
php artisan view:clear
php artisan twig:clear

Clear composer cache

composer clearcache 

Migration

php artisan make:migration --addon=you_addon

Seeding

  • Create seed
php artisan make:seeder GridSeeder
  • Run seed
php artisan db:seed --class=GridSeeder
  • Seed Addon
php artisan db:seed --addon=[addon]

Module/Addons

• Create Addon - php artisan make:addon my_project.module.library
• Create Stream - php artisan make:stream books my_project.module.library
• Install Module - php artisan module:install my_project.module.library
• UnInstall Module - php artisan module:uninstall my_project.module.library
• ReInstall Module - php artisan module:reinstall my_project.module.library
• ReInstall and Seed Module - php artisan module:reinstall my_project.module.library --seed
• Publish Addon - php artisan addon:publish library

Addon

• Create Addon php artisan make:addon my_project.plugin.widget

Images

{{ thumbnail.image().fit(400, 400, null,'top')|raw }} Position

Leave a Comment

%d bloggers like this: