Laravel - 更改项目名称后找不到页面

时间:2018-04-19 19:51:29

标签: php laravel .htaccess caching configuration

我使用:import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class aaaaa { // Class attributes // Overall class attributes private JFrame frame = new JFrame("Simulation App"); // Class attributes for method setTextFieldPar private JPanel panelThetaCh = new JPanel(); private JPanel panelSetButton = new JPanel(); private JTextField textFieldThetaCh = new JTextField(13); private String StringThetaCh; // Class attributes for method setButton private JButton buttonSetPar; // Text field of all simulation parameters public void setTextFieldPar(JPanel panel, JTextField textField, String latexString){ // Panel layout - FlowLayout panel.setLayout(new FlowLayout()); panel.setMinimumSize(new Dimension(300, 100)); frame.add(panel); panel.setAlignmentX(Component.CENTER_ALIGNMENT); JLabel labelText = new JLabel("text"); panel.add(labelText); // Create text field // textField = new JTextField(13); panel.add(textFieldThetaCh); } // Button "Set Parameters" public void setButton (JPanel panel){ panel.setLayout(new GridLayout(4, 0)); panel.setMaximumSize(new Dimension(200, 100)); frame.add(panel); panel.setAlignmentX(Component.CENTER_ALIGNMENT); buttonSetPar = new JButton("Set Parameters"); panel.add(buttonSetPar); } // Monitor input in text field public void monitorTextField() { buttonSetPar.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { // Extract numbers entered in text field for the parameters StringThetaCh = textFieldThetaCh.getText(); if (StringThetaCh.equals("")) { JFrame errorWindow = new JFrame("Error"); errorWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); errorWindow.setLocationRelativeTo(null); JOptionPane.showMessageDialog(errorWindow, "At least one text field is empty, please enter numerical values"); } else JOptionPane.showMessageDialog(null, StringThetaCh); } }); } // Constructor public aaaaa(){ frame.setSize(350, 800); frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); frame.setLocationRelativeTo(null); frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS)); // Text field for parameters setTextFieldPar(panelThetaCh, textFieldThetaCh, "\\theta_{CH}"); // Button for set parameter setButton(panelSetButton); // Monitoring input in text field monitorTextField(); } public static void main(String args[]) { EventQueue.invokeLater(new Runnable() { public void run() { aaaaa window2 = new aaaaa(); window2.frame.setVisible(true); } }); }

更改了我的Laravel项目名称

我的项目显示错误:

php artisan app:name new_name

我做了一些研究,在StackOverflow上找到了一个已回答的问题,建议我删除/bootstrap/cache/config.php文件。

我将其删除并通过Class 'app\Providers\EloquentEventServiceProvider' not found

重新生成

现在我的项目正在显示

抱歉,找不到您要查找的页面。

我的路线/ web.php如下:

php artisan config:cache

我的.htaccess文件如下:

/** Auth Routes*/
Auth::routes();

/** Homepage Route*/
Route::get('/', function () {
    return view('layout');
});

请帮助我!

2 个答案:

答案 0 :(得分:0)

您可以尝试下一个命令:

php artisan route:clear

答案 1 :(得分:0)

尝试

php artisan config:clear

并更改Class 'app\Providers\EloquentEventServiceProvider' to Class 'App\Providers\EloquentEventServiceProvider' 并查看它是否有效