现有laravel 5.7项目添加maatwebsite excel包后出现问题

问题描述 投票:0回答:1

按照安装指南安装maat网站后,家庭控制器中的任何功能都无法工作,但其他控制器可以工作。尝试更改控制器的名称,但没有用。

在安装过程中我收到一些警告:

   Warning: Ambiguous class resolution, "App\Console\Kernel" was found in both "C:/xampp/htdocs/hrms/app\Console\Kernel.php" and "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Console\Kernel.php", the first will be used.
Warning: Ambiguous class resolution, "App\Exceptions\Handler" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Exceptions\Handler.php" and "C:/xampp/htdocs/hrms/app\Exceptions\Handler.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Controllers\Auth\ForgotPasswordController" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Controllers\Auth\ForgotPasswordController.php" and "C:/xampp/htdocs/hrms/app\Http\Controllers\Auth\ForgotPasswordController.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Controllers\Auth\LoginController" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Controllers\Auth\LoginController.php" and "C:/xampp/htdocs/hrms/app\Http\Controllers\Auth\LoginController.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Controllers\Auth\RegisterController" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Controllers\Auth\RegisterController.php" and "C:/xampp/htdocs/hrms/app\Http\Controllers\Auth\RegisterController.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Controllers\Auth\ResetPasswordController" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Controllers\Auth\ResetPasswordController.php" and "C:/xampp/htdocs/hrms/app\Http\Controllers\Auth\ResetPasswordController.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Controllers\Auth\VerificationController" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Controllers\Auth\VerificationController.php" and "C:/xampp/htdocs/hrms/app\Http\Controllers\Auth\VerificationController.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Controllers\Controller" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Controllers\Controller.php" and "C:/xampp/htdocs/hrms/app\Http\Controllers\Controller.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Controllers\HomeController" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Controllers\HomeController.php" and "C:/xampp/htdocs/hrms/app\Http\Controllers\HomeController.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Kernel" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Kernel.php" and "C:/xampp/htdocs/hrms/app\Http\Kernel.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Middleware\Authenticate" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Middleware\Authenticate.php" and "C:/xampp/htdocs/hrms/app\Http\Middleware\Authenticate.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Middleware\CheckForMaintenanceMode" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Middleware\CheckForMaintenanceMode.php" and "C:/xampp/htdocs/hrms/app\Http\Middleware\CheckForMaintenanceMode.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Middleware\EncryptCookies" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Middleware\EncryptCookies.php" and "C:/xampp/htdocs/hrms/app\Http\Middleware\EncryptCookies.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Middleware\RedirectIfAuthenticated" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Middleware\RedirectIfAuthenticated.php" and "C:/xampp/htdocs/hrms/app\Http\Middleware\RedirectIfAuthenticated.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Middleware\TrimStrings" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Middleware\TrimStrings.php" and "C:/xampp/htdocs/hrms/app\Http\Middleware\TrimStrings.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Middleware\TrustProxies" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Middleware\TrustProxies.php" and "C:/xampp/htdocs/hrms/app\Http\Middleware\TrustProxies.php", the first will be used.
Warning: Ambiguous class resolution, "App\Http\Middleware\VerifyCsrfToken" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Http\Middleware\VerifyCsrfToken.php" and "C:/xampp/htdocs/hrms/app\Http\Middleware\VerifyCsrfToken.php", the first will be used.
Warning: Ambiguous class resolution, "App\Providers\AppServiceProvider" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Providers\AppServiceProvider.php" and "C:/xampp/htdocs/hrms/app\Providers\AppServiceProvider.php", the first will be used.
Warning: Ambiguous class resolution, "App\Providers\AuthServiceProvider" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Providers\AuthServiceProvider.php" and "C:/xampp/htdocs/hrms/app\Providers\AuthServiceProvider.php", the first will be used.
Warning: Ambiguous class resolution, "App\Providers\BroadcastServiceProvider" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Providers\BroadcastServiceProvider.php" and "C:/xampp/htdocs/hrms/app\Providers\BroadcastServiceProvider.php", the first will be used.
Warning: Ambiguous class resolution, "App\Providers\EventServiceProvider" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Providers\EventServiceProvider.php" and "C:/xampp/htdocs/hrms/app\Providers\EventServiceProvider.php", the first will be used.
Warning: Ambiguous class resolution, "App\Providers\RouteServiceProvider" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\Providers\RouteServiceProvider.php" and "C:/xampp/htdocs/hrms/app\Providers\RouteServiceProvider.php", the first will be used.
Warning: Ambiguous class resolution, "App\User" was found in both "C:/xampp/htdocs/hrms/app\Exceptions\cms\app\User.php" and "C:/xampp/htdocs/hrms/app\User.php", the first will be used.
laravel controller maatwebsite-excel
1个回答
0
投票

我也遇到了同样的问题,我做了以下事情

 1. Delete vendor/ 
 2. Delete composer.lock 
 3. composer install
© www.soinside.com 2019 - 2024. All rights reserved.