jaiwalker/bronto-laravel

Bronto Integration to laravel.

v0.1 2017-07-10 04:06 UTC

This package is not auto-updated.

Last update: 2024-11-24 04:16:37 UTC


README

Installation

First, pull in the package through Composer.

Run composer require jaiwalker/bronto-laravel

And then, if using Laravel 5.2, include the service provider within config/app.php.

'providers' => [
   Jaiwalker\BrontoApi\BrontoServiceProvider::class,
];

To publish config run

php artisan vendor:publish --provider="Jaiwalker\BrontoApi\BrontoServiceProvider"

This should create a file {bronto} in config folder.

Usage

Within your controllers, before you use

public function whatever()
{
   BrontoApi::contact()->updateOrCreate(); 
   BrontoApi::contact()->getContactByEmail(); 
   BrontoApi::contact()->updateByEmail(); 
}