tdcreative/cockpit-php

A Cockpit wrapper package in php.

This package's canonical repository appears to be gone and the package has been frozen as a result.

0.0.9 2017-12-17 00:33 UTC

This package is not auto-updated.

Last update: 2021-02-06 08:11:29 UTC


README

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.