aungwinthant / apilogger

Small laravel package for viewing api logs which can be used in debugging.
MIT License
346 stars 61 forks source link

ErrorException #36

Open vasyakrg opened 4 years ago

vasyakrg commented 4 years ago
ErrorException
Declaration of AWT\Http\Controllers\ApiLogController::index(AWT\Contracts\ApiLoggerInterface $logger) should be compatible with App\Http\Controllers\Controller::index(Illuminate\Http\Request $request)
JohnRoux commented 4 years ago

Can you please add your composer.json file here.

What version of Laravel are you using?

vasyakrg commented 4 years ago

"laravel/framework": "^7.0" - 7.13

composer.json.zip Driver: 'driver' => env('API_LOGS_DRIVER', 'db')

write request to db excellent work! all data write right

Routes: Route::prefix('/configs')->group(function () { Route::get('/', ['uses' => 'Api\ConfigFileJsonController@indexJson']); Route::post('/config', ['uses' => 'Api\ConfigFileJsonController@getConfigFileJson']); **Route::middleware('apilogger')->post('/create', ['uses' => 'Api\ConfigFileJsonController@CreateConfigJson']);** Route::fallback('Api\ConfigFileJsonController@fallbackJson'); });

but only not work UI small trouble, but i confused :)