marcelgwerder / laravel-api-handler

Package providing helper functions for a Laravel REST-API
Other
152 stars 45 forks source link

Non-static method Marcelgwerder\\ApiHandler\\ApiHandler::parseMultiple() should not be called statically #43

Closed Xiongzhenyu closed 7 years ago

Xiongzhenyu commented 7 years ago

ApiHandler class parseSingle and parseMultiple is not static , so can't use ApiHandler::parseMultiple

marcelgwerder commented 7 years ago

My guess is that you use the class the wrong way. You should either use the facade Marcelgwerder\ApiHandler\Facades\ApiHandler "statically" or inject the class Marcelgwerder\ApiHandler\ApiHandler in a class that supports dependency injection.

Xiongzhenyu commented 7 years ago

Yes, i use Marcelgwerder\ApiHandler\ApiHandler. i fix then, is true now