<?php
class Myform extends Controller
{
public function index()
{
return view('form');
}
}
?>
路由代码
Route::get('/myform', 'Myform@ndex');
错误是
ReflectionException in Route.php line 264: Method App\Http\Controllers\Myform::ndex() does not exist
最佳答案
改变自
Route::get('/myform', 'Myform@ndex');
到
Route::get('/myform', 'Myform@index');
关于php - Route.php 行中的 ReflectionException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35409418/