我尝试使用FTP上传我的Laravel项目,我做了一个作曲家更新并将服务器的PHP版本更改为7.但是我得到了一个'NotFoundHttpException'。 错误。 有人可以帮助我吗?我只是学习Laravel并部署一个项目。我使用了hostinger。 提前谢谢。
I tried to upload my Laravel project using FTP, I did a composer update and changed server's PHP version to 7. But I'm getting a 'NotFoundHttpException' error. Can someone help me?Im just learning Laravel and deploying a project.I used hostinger. Thanks in advance.
抱歉,找不到您要查找的页面。
Sorry, the page you are looking for could not be found.
(1/1)NotFoundHttpException 在RouteCollection.php(第179行)
(1/1) NotFoundHttpException in RouteCollection.php (line 179)
在RouteCollection->匹配(对象(请求)) 在Router.php中(第548行)
at RouteCollection-》match(object(Request)) in Router.php (line 548)
在Router-> findRoute(对象(请求)) 在Router.php中(第527行)
at Router-》findRoute(object(Request)) in Router.php (line 527)
在Router-> dispatchToRoute(object(Request)) 在Router.php中(第513行)
at Router-》dispatchToRoute(object(Request)) in Router.php (line 513)
在Router-> dispatch(对象(请求)) 在Kernel.php中(第176行)
at Router-》dispatch(object(Request)) in Kernel.php (line 176)
at Kernel-> Illuminate \\ Foundation \\ Http {closure}(object(Request)) 在Pipeline.php(第30行)
at Kernel-》Illuminate\\Foundation\\Http{closure}(object(Request)) in Pipeline.php (line 30)
at Pipeline-> Illuminate \\ Routing {closure}(object(Request)) 在TransformsRequest.php(第30行)
at Pipeline-》Illuminate\\Routing{closure}(object(Request)) in TransformsRequest.php (line 30)
在TransformsRequest->句柄(对象(Request),对象(Closure)) 在Pipeline.php中(第148行)
at TransformsRequest-》handle(object(Request), object(Closure)) in Pipeline.php (line 148)
at Pipeline-> Illuminate \\ Pipeline {closure}(object(Request)) 在Pipeline.php中(第53行)
at Pipeline-》Illuminate\\Pipeline{closure}(object(Request)) in Pipeline.php (line 53)
at Pipeline-> Illuminate \\ Routing {closure}(object(Request)) 在TransformsRequest.php(第30行)
at Pipeline-》Illuminate\\Routing{closure}(object(Request)) in TransformsRequest.php (line 30)
在TransformsRequest->句柄(对象(Request),对象(Closure)) 在Pipeline.php中(第148行)
at TransformsRequest-》handle(object(Request), object(Closure)) in Pipeline.php (line 148)
at Pipeline-> Illuminate \\ Pipeline {closure}(object(Request)) 在Pipeline.php中(第53行)
at Pipeline-》Illuminate\\Pipeline{closure}(object(Request)) in Pipeline.php (line 53)
at Pipeline-> Illuminate \\ Routing {closure}(object(Request)) 在ValidatePostSize.php(第27行)
at Pipeline-》Illuminate\\Routing{closure}(object(Request)) in ValidatePostSize.php (line 27)
在ValidatePostSize->句柄(对象(Request),对象(Closure)) 在Pipeline.php中(第148行)
at ValidatePostSize-》handle(object(Request), object(Closure)) in Pipeline.php (line 148)
at Pipeline-> Illuminate \\ Pipeline {closure}(object(Request)) 在Pipeline.php中(第53行)
at Pipeline-》Illuminate\\Pipeline{closure}(object(Request)) in Pipeline.php (line 53)
at Pipeline-> Illuminate \\ Routing {closure}(object(Request)) 在CheckForMaintenanceMode.php(第46行)
at Pipeline-》Illuminate\\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php (line 46)
在CheckForMaintenanceMode->句柄(对象(Request),对象(Closure)) 在Pipeline.php中(第148行)
at CheckForMaintenanceMode-》handle(object(Request), object(Closure)) in Pipeline.php (line 148)
at Pipeline-> Illuminate \\ Pipeline {closure}(object(Request)) 在Pipeline.php中(第53行)
at Pipeline-》Illuminate\\Pipeline{closure}(object(Request)) in Pipeline.php (line 53)
at Pipeline-> Illuminate \\ Routing {closure}(object(Request)) 在Pipeline.php中(第102行)
at Pipeline-》Illuminate\\Routing{closure}(object(Request)) in Pipeline.php (line 102)
在Pipeline->然后(object(Closure)) 在Kernel.php中(第151行)
at Pipeline-》then(object(Closure)) in Kernel.php (line 151)
at Kernel-> sendRequestThroughRouter(object(Request)) 在Kernel.php(第116行)
at Kernel-》sendRequestThroughRouter(object(Request)) in Kernel.php (line 116)
at Kernel-> handle(object(Request)) 在index.php(第53行)
at Kernel-》handle(object(Request)) in index.php (line 53)
《?php
Route::get('index', function () {
return view('index.index');
});
Route::get('signup', function () {
return view('auth.signup');
});
Route::get('choose-signup', 'EmployerLoginController@create');
Route::post('choose-signup', 'EmployerLoginController@store');
Route::get('register-emp', function(){
return view('Auth.register-emp');
});
Route::post('register-emp', 'RegEmpController@store');
// ---
Route::get('home', 'HomeController@index');
Auth::routes(); // ---
// employer
Route::get('logs', 'Auth\EmployerLoginController@showLoginForm');
Route::post('logs', 'Auth\EmployerLoginController@login')-》name('logss');
Route::get('employer', 'EmployerController@index')-》name('emp');
// employer
// *******W O R K E X P E R I E N C E**************
Route::get('profile', 'WorkExperienceController@index')-》middleware('auth');
Route::post('profile/add','WorkExperienceController@store');
Route::get('resume', 'WorkExperienceController@create')-》middleware('auth');
Route::post('resume/{id}', 'WorkExperienceController@update');
Route::get('resume/{id}', 'WorkExperienceController@destroy');
// **********E D U C A T I O N***********
Route::post('profile/added','AddEducationController@store')-》middleware('auth');
Route::post('profile/{id}', 'AddEducationController@update');
Route::get('profile/{id}', 'AddEducationController@destroy');
//*********S K I L L S******************
Route::post('skill/added','AddSkillsController@store')-》middleware('auth');
Route::post('skill/{id}','AddSkillsController@update');
Route::get('skill/{id}', 'AddSkillsController@destroy');
//********* S E M I N A R S******************
Route::post('profileaddsem','AddSeminarController@store')-》middleware('auth');
Route::post('seminar/{id}','AddSeminarController@update');
Route::get('seminar/{id}', 'AddSeminarController@destroy');
//*********C O N T A C T I N F O******************
Route::get('jobseeker-signup', 'ContactInfocontroller@create');
Route::post('jobseeker-signup', 'ContactInfocontroller@store');
Route::post('contact/{id}','ContactInfocontroller@update');
Route::get('choose-signup2', 'JobseekerLoginController@index');
Route::post('choose-signup2', 'JobseekerLoginController@store');
// Route::get('/contact-info', function () {
// return view('jobseeker-signup-partials.contact-info');
// });
// *****************I M A G E ***********************
Route::post('imgupdate','HomeController@update_avatar');
// ***************P O S T A J O B*************************
Route::get('jobsearch', 'PostJobController@index');
Route::post('jobsearch', 'PostJobController@index');
// ***************e d i t p o s t e d j o b************************
Route::post('posted/{id}', 'PostJobController@editJob');
Route::get('posted/{id}', 'PostJobController@destroy');
// ************J O B P O S T******************
Route::get('jobpost/{id}','PostJobController@show');
// ****Click Apply**********
Route::post('jobpost','ApplicationController@store');
// ****Click Save**********
Route::post('save','ApplicationController@saveJob');
// ***********delete saved jobs*******************
Route::post('unsave/{id}','ApplicationController@destroy');
Route::get('applicants','PostJobController@applicants');
Route::post('pdf','WorkExperienceController@upload');
// ****************************************
Route::get('sendemail', function() {
$data = array (
'name' =》 'Hello Email!',
);
Mail::send('emails.welcome', $data, function($message){
$message-》from('cathcasumali@gmail.com','Hello');
$message-》to('caumali46@gmail.com')-》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', 'EmployerSignupController@create');
Route::post('employer-signup', 'EmployerSignupController@store');
// Route::get('company-profile', 'PostJobController@create');
Route::post('employer/post', 'PostJobController@store');
// Route::prefix('employer')-》group(function(){
// Route::get('/login', 'Auth\EmployerLoginController@showLoginForm')-》name('employer.login');
// Route::post('/login', 'Auth\EmployerLoginController@login')-》name('employer.login.submit');
// Route::get('/', 'EmployerController@index')-》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', 'PostJobController@index');