0
我得到下面當我從一臺計算機遷移到另一項目中的錯誤:Laravel錯誤RouteCollection.php
我導入MySQL表,做了遷移,當我上的鏈接點擊我得到的路線錯誤:
NotFoundHttpException在RouteCollection.php線161:
我routes.php文件
Route::group(['middleware' =>[ 'web']], function() {
Route::any('user/login', ['as' => 'user.login', 'uses' => '[email protected]']);
Route::any('user/dologin', ['as' => 'user.dologin', 'uses' => '[email protected]']);
});
Route::group(['middleware' =>[ 'web','auth']], function() {
//Route::any('/', function() { return view('user.dashboard'); });
Route::any('user/dashboard', ['as' => 'user.dashboard', 'uses' => '[email protected]']);
Route::any('user/logout', ['as' => 'user.logout' , 'uses' => '[email protected]']);
Route::any('sos/create', ['as' => 'sos.create', 'uses' => '[email protected]']);
Route::any('sos/index', ['as' => 'sos.index' , 'uses' => '[email protected]']);
Route::any('sos/store', ['as' => 'sos.store' , 'uses' => '[email protected]']);
Route::any('sos/show/{id}', ['as' => 'sos.show' , 'uses' => '[email protected]']);
Route::any('sos/edit/{id}', ['as' => 'sos.edit' , 'uses' => '[email protected]']);
Route::any('sos/update/{id}', ['as' => 'sos.update' , 'uses' => '[email protected]']);
Route::any('sos/destroy/{id}', ['as' => 'sos.destroy' , 'uses' => '[email protected]']);
Route::any('sos/submit/{id}', ['as' => 'sos.submit' , 'uses' => '[email protected]']);
Route::any('sos/approve/{id}', ['as' => 'sos.approve' , 'uses' => '[email protected]']);
Route::any('sos/reject/{id}', ['as' => 'sos.reject' , 'uses' => '[email protected]']);
Route::any('sos/customer-search', ['as'=>'sos.customer-search','uses'=>'[email protected]']);
Route::any('sos/customer-selected', ['as'=>'sos.customer-selected','uses'=>'[email protected]']);
Route::any('order/create', ['as' => 'order.create', 'uses' => '[email protected]']);
Route::any('order/index', ['as' => 'order.index' , 'uses' => '[email protected]']);
Route::any('order/store', ['as' => 'order.store' , 'uses' => '[email protected]']);
Route::any('order/show/{id}', ['as' => 'order.show' , 'uses' => '[email protected]']);
Route::any('order/edit/{id}', ['as' => 'order.edit' , 'uses' => '[email protected]']);
Route::any('order/update/{id}', ['as' => 'order.update' , 'uses' => '[email protected]']);
Route::any('order/destroy/{id}', ['as' => 'order.destroy' , 'uses' => '[email protected]']);
Route::any('order/submit/{id}', ['as' => 'order.submit' , 'uses' => '[email protected]']);
Route::any('order/approve/{id}', ['as' => 'order.approve' , 'uses' => '[email protected]']);
Route::any('order/reject/{id}', ['as' => 'order.reject' , 'uses' => '[email protected]']);
Route::any('order/customer-search', ['as'=>'order.customer-search','uses'=>'[email protected]']);
Route::any('order/customer-selected', ['as'=>'order.customer-selected','uses'=>'[email protected]']);
Route::any('order/ship_to_address_area', ['as'=>'order.ship_to_address_area','uses'=>'[email protected]_to_address_area']);
Route::any('order/dept_name_field', ['as'=>'order.dept_name_field','uses'=>'[email protected]_name_field']);
Route::any('equipment/create', ['as' => 'equipment.create', 'uses' => '[email protected]']);
Route::any('equipment/index', ['as' => 'equipment.index' , 'uses' => '[email protected]']);
Route::any('equipment/store', ['as' => 'equipment.store' , 'uses' => '[email protected]']);
Route::any('equipment/show/{id}', ['as' => 'equipment.show' , 'uses' => '[email protected]']);
Route::any('equipment/edit/{id}', ['as' => 'equipment.edit' , 'uses' => '[email protected]']);
Route::any('equipment/update/{id}', ['as' => 'equipment.update' , 'uses' => '[email protected]']);
Route::any('equipment/destroy/{id}', ['as' => 'equipment.destroy' , 'uses' => '[email protected]']);
Route::any('equipment/loadManufacturer', ['as'=>'equipment.loadManufacturer','uses'=>'[email protected]']);
Route::any('equipment/loadMachine', ['as'=>'equipment.loadMachine','uses'=>'[email protected]']);
Route::any('equipment/loadModel', ['as'=>'equipment.loadModel','uses'=>'[email protected]']);
Route::any('equipment/loadImage', ['as'=>'equipment.loadImage','uses'=>'[email protected]']);
});
laravel版本另一條路線? –
你想要去哪條路線? – SysVoid
如果您使用的是5.2.27或更高版本,請刪除網絡中間件。 –