mardi 11 juillet 2017

Autoload composer package in Laravel package

I have created a package in my Laravel application.

enter image description here

In this package I need recastai/sdk-php. (composer require recastai/sdk-php)

How can I autoload the class ?

<?php

namespace Vendor\Recast;

use RecastAI\Client;

class Recast
{
    public $client;

    function __construct()
    {
        $this->client = Client::Connect(env("RECAST_REQUEST_TOKEN"), env("RECAST_LANGUAGE"));
    }
}

Class 'RecastAI\Client' not found in ../packages/vendor/recast/src/Recast.php:19



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uddlMO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire