プラグインがcomposer.jsonを作成したフォルダーにプラグインを書き込もうとしています
{
"Require": {
"Php": "> = 5.4.0",
"Mattbrown / laracurl": "2.0.0"
}
}
plugin.php を入れます
public function boot ()
{
App :: register ('\ Mattbrown \ Laracurl \ LaracurlServiceProvider');
}
しかし、任意のページを呼び出すと、次のインターセプトが発生します
Call to undefined method [package]
***** / Vendor / laravel / framework / src / Illuminate / Support / ServiceProvider.php line 226
# Called Code Document Line
14 Illuminate\Support\ServiceProvider->__call(…) ~/plugins/triagmas/parser/vendor/mattbrown/laracurl/src/Mattbrown/Laracurl/LaracurlServiceProvider.php 21
13 Mattbrown\Laracurl\LaracurlServiceProvider->package(…) ~/plugins/triagmas/parser/vendor/mattbrown/laracurl/src/Mattbrown/Laracurl/LaracurlServiceProvider.php 21
12 Mattbrown\Laracurl\LaracurlServiceProvider->boot()
11 call_user_func_array(…) ~/vendor/laravel/framework/src/Illuminate/Container/Container.php 523
10 Illuminate\Container\Container->call(…) ~/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 703
9 Illuminate\Foundation\Application->bootProvider(…) ~/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 685
8 Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(…)
7 array_walk(…) ~/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 686
6 Illuminate\Foundation\Application->boot() ~/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php 15
5 Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(…) ~/vendor/laravel/framework/src/Illuminate/Foundation/Application.php 181
4 Illuminate\Foundation\Application->bootstrapWith(…) ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 199
3 Illuminate\Foundation\Http\Kernel->bootstrap() ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 110
2 Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(…) ~/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php 84
1 Illuminate\Foundation\Http\Kernel->handle(…) ~/index.php
私の間違いをどうするか教えてください