hexters / CoinPayment

Package to handle payment of cryptocurrency
https://www.coinpayments.net/index.php?ref=3dc0c5875304cc5cc1d98782c2741cb5
MIT License
73 stars 42 forks source link

Unable to prepare route [api/coinpayment] for serialization. Uses Closure. #34

Closed ibrunotome closed 4 years ago

ibrunotome commented 4 years ago

I can't cache the routes because of the closure in:

Route::middleware('auth:api')->get('/coinpayment', function (Request $request) {
    return $request->user();
});

I did not found a use for the /coinpayment api route, so maybe we could remove the registration of api routes? I will open a PR for this if you agrees.