laravel - laravel 中的错误“找不到查看 [posts.create]。” 虽然它存在
问题描述
大家好,我正面临这个错误“未找到查看 [posts.create]。” 虽然它已经存在!
所以你觉得那是我那部分的路线代码
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/*
|--------------------------------------------------------------------------
| Upgrading
|--------------------------------------------------------------------------
|
| The upgrading process routes
|
*/
Route::group(['middleware' => ['web'], 'namespace' => 'App\Http\Controllers'], function () {
Route::get('upgrade', 'UpgradeController@version');
});
Route::group(['middleware' => ['web'], 'namespace' => 'App\Http\Controllers'], function () {
Route::get('upgrade', 'UpgradeController@version');
Route::get('posts/create', 'Ajax\CountryController@provinces');
Route::get('json-regencies','Ajax\CountryController@regencies');
Route::get('json-districts', 'Ajax\CountryController@districts');
Route::get('json-village', 'Ajax\CountryController@villages');
});
问候,
解决方案
如果您的设置正确,首先尝试检查您的路线,然后如果您觉得您的设置很好,请尝试使用此命令。
php artisan route:clear
php artisan config:clear
php artisan clear-compiled
推荐阅读
- django - 我想在我的 base.html 中显示一些数据库查询条目
- php - 如何仅显示当前类别和子类别
- python - 更改数据类型
- node.js - Angular/Node/ng 应用程序的组件是什么?它们各自做什么以及它们之间的关系如何?
- django - Django + Elastic Beanstalk,access_log 中有 500 个响应代码,但 error_log 中没有
- docker - Sitecore 码头工人构建。Invoke-RemoteScript.ps1 超时
- javascript - 使用历史推送重定向用户反应
- java - spring如何触发为ChainedTransactionManager创建JpaTransactionManager bean
- bash - 历史命令未被识别为 child_process 中的内部命令
- python - 从源代码安装python3.6时没有名为venv的模块