我正尝试使用本教程在我的网站上使用 Paypal API 安装支付:https://www.youtube.com/watch?v=q5Xb5r4MUB8
当我想访问此 URL 时出现错误:/payment
Route.php line 279: Class App\Http\Controllers\PaymentController does not exist
我检查过 PaymentController 实际上在 App\Http\Controller 中 我试过 composer dumpautoload 和 php artisan optimize
奇怪的是 \app 中没有任何类在 vendor/composer/autoload_classmap.php 中被引用...
这是我的 PaymentController.php 文件的开头:
<?
namespace App\Http\Controllers;
use Paypalpayment;
class PaymentController extends Controller {
最佳答案
将您的打开文件标签更改为 <?php
关于php - Route.php 第 279 行 : Class App\Http\Controllers\PaymentController does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36674209/