laravel8错误Target class [App\Http\Controllers\RosaController] does not exist.
laravel8路由错误Target class [App\Http\Controllers\RosaController] does not exist.需要添加命名空间。
解决方法1
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Web\RosaController;
Route::get('/',[RosaController::class,'index']);
解决方法2
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Route;
Route::get('/',[Web\RosaController::class,'index']);
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭