Php 新创建的路由未反映到生产服务器

Php 新创建的路由未反映到生产服务器,php,laravel,amazon-ec2,Php,Laravel,Amazon Ec2,我们的生产服务器托管在AWS上。我已经创建了一个新路由并为此定义了模板。它在我的本地系统中工作,但当我将它推到生产服务器时,它不工作,显示“抱歉,找不到您要查找的页面”。我们找到了它,并在生产服务器上运行了一个命令(php artisan route:list),这并没有显示新添加的路由,但当我对本地系统运行此命令时,我发现了此路由。因此,我的问题是,为什么它没有显示在生产服务器上,即它没有反映到那里 web.php <?php //RegisterController

我们的生产服务器托管在AWS上。我已经创建了一个新路由并为此定义了模板。它在我的本地系统中工作,但当我将它推到生产服务器时,它不工作,显示“抱歉,找不到您要查找的页面”。我们找到了它,并在生产服务器上运行了一个命令(php artisan route:list),这并没有显示新添加的路由,但当我对本地系统运行此命令时,我发现了此路由。因此,我的问题是,为什么它没有显示在生产服务器上,即它没有反映到那里

web.php

<?php

    //RegisterController
    Route::get('/ent-register','RegisterController@entrepreneur');
    Route::get('/org-register','RegisterController@organization');
    Route::get('/sup-register','RegisterController@supporter');
    Route::get('/inv-register','RegisterController@investor');
    Route::post('/register/store','RegisterController@store');
    Route::get('/reg-note','RegisterController@reg_note');
    Route::get('/contact-note','RegisterController@contact_note');//this is the newly added route
?>

显示web.php文件或路由:列出日志。以便其他人可以帮助您:)您是否在生产服务器上缓存路由?尝试清除或重新缓存那里的路由谢谢@Gareth Drew,这个命令“php artisan route:cache”解决了我的问题。
@extends('layouts.master')
@section('title','Request response')
@section('pagebody')

<!-- Start Inner Contents -->

    <section class="myaccount-header">
    <div class="container">
    <h1>Contact</h1>
    </div>
    </section>

    <section class="myaccount-body">
    <div class="myaccount-document">
    <div class="container">
    <!--<p>We are submitted your request to the AIM administrator, They will response your request as soon as possible.<a href="{{url('/')}}" target="_top">Go Back To Home Page</a></p>-->

    <p>Thank you for contacting us, our team will get back to you shortly. <a href="{{url('/')}}" target="_top">Go Back To Home Page</a></p>
    <!-- AddThis Sharing Buttons below -->                  </div>
    </div>
    </section>

@endsection
public function contact_note()
{
    return view('home.contact-note');
}