PHPackages                             clusterpoint/laravel-clusterpoint - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. clusterpoint/laravel-clusterpoint

ActiveLibrary[Database &amp; ORM](/categories/database)

clusterpoint/laravel-clusterpoint
=================================

4.0.6(9y ago)21.4k2[1 issues](https://github.com/clusterpoint/laravel-clusterpoint/issues)MITPHPPHP &gt;=5.4

Since Feb 19Pushed 9y ago5 watchersCompare

[ Source](https://github.com/clusterpoint/laravel-clusterpoint)[ Packagist](https://packagist.org/packages/clusterpoint/laravel-clusterpoint)[ Docs](https://www.clusterpoint.com/)[ RSS](/packages/clusterpoint-laravel-clusterpoint/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (7)Used By (0)

Clusterpoint 4.x PHP Client API - Laravel Package
=================================================

[](#clusterpoint-4x-php-client-api---laravel-package)

[![Latest Stable Version](https://camo.githubusercontent.com/ebad3f2737ac8564ffbdb2102d3e37c91e9ec798d8b93e578ff90897ffaab727/68747470733a2f2f706f7365722e707567782e6f72672f636c7573746572706f696e742f6c61726176656c2d636c7573746572706f696e742f762f737461626c65)](https://packagist.org/packages/clusterpoint/laravel-clusterpoint) [![Total Downloads](https://camo.githubusercontent.com/a962ada85b18dbee061e708fa6fc037449c1c7df3b42360e83db81fc1c0de475/68747470733a2f2f706f7365722e707567782e6f72672f636c7573746572706f696e742f6c61726176656c2d636c7573746572706f696e742f646f776e6c6f616473)](https://packagist.org/packages/clusterpoint/laravel-clusterpoint) [![Latest Unstable Version](https://camo.githubusercontent.com/fe99256206a32677f599727c693e6ce79c76bd9a49d7ab87ac5c3fc28cfdcd8a/68747470733a2f2f706f7365722e707567782e6f72672f636c7573746572706f696e742f6c61726176656c2d636c7573746572706f696e742f762f756e737461626c65)](https://packagist.org/packages/clusterpoint/laravel-clusterpoint) [![License](https://camo.githubusercontent.com/f34b0e68afde7169b2c84af44b27d31e7dd8282c8e5909f5d0ccd69e0d68d5d4/68747470733a2f2f706f7365722e707567782e6f72672f636c7573746572706f696e742f6c61726176656c2d636c7573746572706f696e742f6c6963656e7365)](https://packagist.org/packages/clusterpoint/laravel-clusterpoint)

Official Documentation
----------------------

[](#official-documentation)

Documentation for the API can be found on the [Clusterpoint website](https://www.clusterpoint.com/docs/api/4/php/345/overview).

Install
-------

[](#install)

1. **Install** the package.
    `composer require clusterpoint/laravel-clusterpoint`
2. **Register** Service Provider in your `config/app.php` file.
    `Clusterpoint\ClusterpointServiceProvider::class`
3. **Publish** config file.
    `php artisan vendor:publish --provider="Clusterpoint\ClusterpointServiceProvider"`
4. **Edit config** – The main config file path is
    `config/clusterpoint.php`
    however we recommend to add your credentials to your .env file in laravel project root directory.

```
CP_HOST=https://api-eu.clusterpoint.com/v4
CP_ID=42
CP_USERNAME=myusername@clusterpoint.com
CP_PASSWORD=mypassword

```

Usage examples
--------------

[](#usage-examples)

- [Client Usage Example](#client)
- [Model Usage Example](#model)
- [Route Model Binding Example](#route)
- [Multiple connections Example](#connect)

\##Client Usage Example Here you can see standart Laravel Controller that uses our service.

```
