laravel中的错误“找不到View [posts.create]”。虽然它存在

时间:2018-07-08 23:04:03

标签: laravel view

大家好,我遇到此错误“未找到View [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');
});

此致

1 个答案:

答案 0 :(得分:0)

如果设置正确,请先尝试检查您的路线, 然后,如果您觉得设置正确,请尝试使用此命令。

php artisan route:clear
php artisan config:clear
php artisan clear-compiled