Cockpit PHP
A Cockpit PHP wrapper for Laravel
Installation
- Pull in using composer:
composer require tdcreative/cockpit-php
- Add
Cockpit\ServiceProvider::class
to yourconfig/app.php
. - Add the Cockpit facade to your
config/app.php
:'Cockpit' => Cockpit\Facades\Cockpit::class
. - If using Laravel's default Database Caching, be sure to run
php artisan cache:table
and thenphp artisan migrate
. - Run
php artisan vendor:publish --tag=config
to copycockpit.php
to yourconfig/
directory. Add your resources to the array. - In your Cockpit CMS, register a webhook to
/webhooks/cockpit/collections/save
on thecollections.save.after
event.