我試圖使用FTP上傳我的Laravel項目,我做了一個composer更新並將服務器的PHP版本更改爲7.但是我收到了'NotFoundHttpException'錯誤。有人能幫助我嗎?我只是學習Laravel並部署了一個項目。我使用了hostinger。提前致謝。Laravel項目中的'NotFoundHttpException'
對不起,您正在尋找的頁面無法找到。
(1/1)在RouteCollection.php NotFoundHttpException (線179)
在RouteCollection->匹配(對象(請求)) 在Router.php(線548)
在路由器 - > findRoute(對象(請求)) 在Router.php(線527)
在路由器 - > dispatchToRoute(對象(請求)) 在Router.php(線513)
在路由器 - >調度(對象(請求)) 在Kernel.php(線176)
在內核級>照亮\基金會\ HTTP {閉合}(對象(請求)) 在Pipeline.php(第30行)
在Pipeline->照亮\路由{閉合}(對象(請求)) 在TransformsRequest.php(第30行)
在TransformsRequest->手柄(對象(請求),對象(封閉)) in Pipeline.php(line 148)
at Pipeline-> Illuminate \ Pipeline {closure}(object(請求)) 在Pipeline.php(線53)
在Pipeline->照亮\路由{閉合}(對象(請求)) 在TransformsRequest.php(第30行)
在TransformsRequest->處理(對象(請求),對象(封閉))在Pipeline.php (線148)
在Pipeline->照亮\管道{閉合}(對象(請求)) 在Pipeline.php(線53)
at Pipeline-> Illuminate \ Routing {closure}(object(Request)) 在ValidatePostSize.php(第27行)
在ValidatePostSize->手柄(對象(請求),對象(封閉)) 在Pipeline.php(線148)
在Pipeline->照亮\管道{閉合}(對象(請求)) 在Pipeline.php(線53)
在Pipeline->照亮\路由{閉合}(對象(請求)) 在CheckForMaintenanceMode.php(線46)
在CheckForMaintenanceMode-> handle(object(Request),object(Closure)) Pipeline.php(line 148)
at Pipeline-> Illuminate \ Pipeline {closure}(object(Request)) 在Pipeline中。PHP(線53)
在Pipeline->照亮\路由{閉合}(對象(請求)) 在Pipeline.php(線102)
在Pipeline->然後(對象(封閉)) 在Kernel.php(線151)
在內核級> sendRequestThroughRouter(對象(請求)) 在Kernel.php在指數(線116)
在內核級>手柄(對象(請求)) .php(line 53)
<?php
Route::get('index', function() {
return view('index.index');
});
Route::get('signup', function() {
return view('auth.signup');
});
Route::get('choose-signup', '[email protected]');
Route::post('choose-signup', '[email protected]');
Route::get('register-emp', function(){
return view('Auth.register-emp');
});
Route::post('register-emp', '[email protected]');
// ---
Route::get('home', '[email protected]');
Auth::routes(); // ---
// employer
Route::get('logs', 'Auth\[email protected]');
Route::post('logs', 'Auth\[email protected]')->name('logss');
Route::get('employer', '[email protected]')->name('emp');
// employer
// *******W O R K E X P E R I E N C E**************
Route::get('profile', '[email protected]')->middleware('auth');
Route::post('profile/add','[email protected]');
Route::get('resume', '[email protected]')->middleware('auth');
Route::post('resume/{id}', '[email protected]');
Route::get('resume/{id}', '[email protected]');
// **********E D U C A T I O N***********
Route::post('profile/added','[email protected]')->middleware('auth');
Route::post('profile/{id}', '[email protected]');
Route::get('profile/{id}', '[email protected]');
//*********S K I L L S******************
Route::post('skill/added','[email protected]')->middleware('auth');
Route::post('skill/{id}','[email protected]');
Route::get('skill/{id}', '[email protected]');
//********* S E M I N A R S******************
Route::post('profileaddsem','[email protected]')->middleware('auth');
Route::post('seminar/{id}','[email protected]');
Route::get('seminar/{id}', '[email protected]');
//*********C O N T A C T I N F O******************
Route::get('jobseeker-signup', '[email protected]');
Route::post('jobseeker-signup', '[email protected]');
Route::post('contact/{id}','[email protected]');
Route::get('choose-signup2', '[email protected]');
Route::post('choose-signup2', '[email protected]');
// Route::get('/contact-info', function() {
// return view('jobseeker-signup-partials.contact-info');
// });
// *****************I M A G E ***********************
Route::post('imgupdate','[email protected]_avatar');
// ***************P O S T A J O B*************************
Route::get('jobsearch', '[email protected]');
Route::post('jobsearch', '[email protected]');
// ***************e d i t p o s t e d j o b************************
Route::post('posted/{id}', '[email protected]');
Route::get('posted/{id}', '[email protected]');
// ************J O B P O S T******************
Route::get('jobpost/{id}','[email protected]');
// ****Click Apply**********
Route::post('jobpost','[email protected]');
// ****Click Save**********
Route::post('save','[email protected]');
// ***********delete saved jobs*******************
Route::post('unsave/{id}','[email protected]');
Route::get('applicants','[email protected]');
Route::post('pdf','[email protected]');
// ****************************************
Route::get('sendemail', function() {
$data = array (
'name' => 'Hello Email!',
);
Mail::send('emails.welcome', $data, function($message){
$message->from('[email protected]','Hello');
$message->to('[email protected]')->subject('Hello');
});
return "Your email has been successfully sent";
});
Route::get('application', function(){
return view('index.application');
});
Route::get('messages', function(){
return view('index.messages');
});
// ***********E M P L O Y E R***********************
Route::get('employer-signup', '[email protected]');
Route::post('employer-signup', '[email protected]');
// Route::get('company-profile', '[email protected]');
Route::post('employer/post', '[email protected]');
// Route::prefix('employer')->group(function(){
// Route::get('/login', 'Auth\[email protected]')->name('employer.login');
// Route::post('/login', 'Auth\[email protected]')->name('employer.login.submit');
// Route::get('/', '[email protected]')->name('company-profile');
// });
// Route::get('/login', function() {
// return view('auth.login');
// });
// Route::get('/jobseeker-signup', function() {
// return view('auth.jobseeker-signup');
// });
// Route::get('/company-profile', function(){
// return view('index.company-profile');
// });
// Route::get('post', '[email protected]');
你能檢查預定航線在航線列表/認沽web.php的代碼web.php –
,什麼是錯的^^ –
並與URL您嘗試訪問,你會得到錯誤的時候?你更新問題,請發表評論,我們會看到你更新它! –