Looking to hire Laravel developers? Try LaraJobs

bronto-laravel maintained by jaiwalker

Description
Bronto Integration to laravel.
Author
Last update
2017/07/10 06:06 (dev-master)
License
Downloads
2 146

Comments
comments powered by Disqus

Laravel Bronto Integration

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(); 
}