2017-11-11 9 views
0

私はlaravelというzohoのPHPパッケージを作成しました。LaravelパッケージServiceProviderが見つかりません

namespace rahulreghunath\zoho; 
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider; 

    class ServiceProvider extends IlluminateServiceProvider 
    { 
     /** 
     * Bootstrap the application services. 
     * 
     * @return void 
     */ 
     public function boot() 
     { 
      $this->publishes([ 
       __DIR__.'/../config/zoho.php' => config_path('zoho.php'), 
      ]); 

     } 

     /** 
     * Register the application services. 
     * 
     * @return void 
     */ 
     public function register() 
     { 

     } 
    } 

、作曲ファイル

{ 
    "name": "rahulreghunath/zoho", 
    "minimum-stability": "dev", 
    "require": { 
    }, 
    "description": "PHP form validation plugin ", 
    "homepage": "https://github.com/rahulreghunath/zoho-crm", 
    "license": "MIT", 
    "authors": [ 
     { 
      "name": "Rahul Reghunath", 
      "email": "[email protected]", 
      "role": "developer" 
     } 
    ] 
} 

パッケージには、私はベンダーのフォルダにありませんが作成時に細かい作業が、私は Packagistと作曲を使用してインストールするには、提出され、それが

エラーが表示されています
[Symfony\Component\Debug\Exception\FatalErrorException] 
    Class 'rahulreghunath\zoho\ServiceProvider' not found 

vendot:publishコマンド を実行している場合でも、プロバイダrahulreghunath\Zoho\ServiceProvider::class, が/ app.php

を設定へのdded自分

答えを見つけることが事前

答えて

0

でとにかく作曲ファイル でオートローディング中にエラーおかげで

{ 
    "name": "rahulreghunath/zoho", 
    "description": "Zoho CRM integration for PHP-Laravel", 
    "license": "MIT", 
    "keywords": ["laravel", "zoho"], 
    "authors": [ 
     { 
      "name": "Rahul Reghunath", 
      "email": "[email protected]", 
      "role": "developer" 
     } 
    ], 
    "require": { 
     "php": ">=5.5.9" 
    }, 

    "autoload": { 
     "psr-4": { 
      "Rahulreghunath\\Zoho\\": "src/" 
     } 
    }, 
    "minimum-stability": "dev" 
} 

にcomposer.jsonを変更したことですサービスプロバイダ

Rahulreghunath\Zoho\ServiceProvider::class, 
関連する問題