IsraelOrtuno / pipedrive

Complete Pipedrive API client for PHP
MIT License
166 stars 58 forks source link

Error Laravel - Call to undefined method #46

Closed marcellorg closed 6 years ago

marcellorg commented 6 years ago
<?php

namespace App\Http\Controllers;

use App\Services\ClientServices;
use Devio\Pipedrive\Pipedrive;
use Illuminate\Http\Request;

class AllSyncController extends Controller
{

    protected $clients;

    public function __construct(ClientServices $clients)
    {
        $this->clients = $clients;

    }

    public function persons(){

        $organizations = Pipedrive::persons()->all()->getData();
    }
}

Error

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to undefined method Devio\Pipedrive\Pipedrive::persons()
IsraelOrtuno commented 6 years ago

Did you add the ServiceProvider?

https://github.com/IsraelOrtuno/pipedrive#service-provider-and-facade

CristyanHenrich commented 1 year ago

Hello my friends, I tried to use Laravel Pipedrive API but got the similar error:

Undefined type 'Devio\Pipedrive\Pipedrive'

Nothing about the package is even found, even adding it to config/app.php.