tdcreative/cockpit-php

A Cockpit wrapper package in php.


License
MIT

Documentation

Cockpit PHP

A Cockpit PHP wrapper for Laravel

Installation

  1. Pull in using composer: composer require tdcreative/cockpit-php
  2. Add Cockpit\ServiceProvider::class to your config/app.php.
  3. Add the Cockpit facade to your config/app.php: 'Cockpit' => Cockpit\Facades\Cockpit::class.
  4. If using Laravel's default Database Caching, be sure to run php artisan cache:table and then php artisan migrate.
  5. Run php artisan vendor:publish --tag=config to copy cockpit.php to your config/ directory. Add your resources to the array.
  6. In your Cockpit CMS, register a webhook to /webhooks/cockpit/collections/save on the collections.save.after event.