0
votes

I'm trying to install payment with Paypal API on my website using this tutorial: https://www.youtube.com/watch?v=q5Xb5r4MUB8

I'm getting an error when i wantto access this URL: /payment

Route.php line 279: Class App\Http\Controllers\PaymentController does not exist

I've checked that the PaymentController is actually in App\Http\Controller I've tried a composer dumpautoload and a php artisan optimize

Something wierd is that not any class from \app are referenced in vendor/composer/autoload_classmap.php...

Here is the begining of my PaymentController.php file:

<?


namespace App\Http\Controllers;

use Paypalpayment;

class PaymentController extends Controller {
1
You file doesn't start with a php tag. Replace it with <?phpDov Benyomin Sohacheski
That's it ! (want to hit my head on a wall haha) Thanks manaurelien75000

1 Answers

1
votes

Change your opening file tags to <?php