victorybiz / laravel-crypto-payment-gateway

GoUrl.io Crypto Payment Gateway for Laravel
MIT License
54 stars 22 forks source link

Route Not defined #2

Closed carlosaroca closed 3 years ago

carlosaroca commented 3 years ago

When I put the code in Web.php show this error,

image

I do the publish and is not working yet

App\Http\Controllers\Victorybiz\LaravelCryptoPaymentGateway\src\Http\Controllers\CryptoPaymentController was not found: Controller class App\Http\Controllers\Victorybiz\LaravelCryptoPaymentGateway\src\Http\Controllers\CryptoPaymentController for one of your routes was not found. Are you sure this controller exists and is imported correctly?

I neeed publish the files manually?

carlosaroca commented 3 years ago

Sorry, was my bad. Laravel 8 is with route namespace by default, so you need put in null if you make a upgrade from other version

macleash90 commented 2 years ago

Sorry, was my bad. Laravel 8 is with route namespace by default, so you need put in null if you make a upgrade from other version

I got stuck here, but did not understand what you meant by ' so you need put in null'. With some research I realized that in App/Providers/RouteServiceProvider.php , I had to change protected $namespace = 'App\Http\Controllers'; to protected $namespace = null; That solved it for me. Thank you