0
방금 내 웹 사이트의 첫 페이지로 이동했습니다. 내 경로는 다음과 같이이다 :Laravel에서 postIndex()가 작동하지 않습니다.
Route::controller('/user', 'UserController');
Route::controller('/page', 'PageController');
Route::controller('/', 'HomeController');
나는 그것이 어떤 이유로 내 HomeController에 postIndex() 메소드를 실행하지 않는 양식을 게시 할 수 있습니다. 나는 이유를 알 수 없다. 테스트 할 텍스트가있는 return 문입니다.
내 양식은 양식에 HTTP 메소드를 추가하는이
{{ Form::open(array('url' => '/', 'class'=>'form', 'role' => 'form', 'id' => 'register-form')) }}
{{ Form::text('username', $value = null, array('placeholder' => 'Username', 'class'=> 'form-control', 'required' => 'required', 'autofocus' => 'autofocus')) }}
{{ Form::password('password', array('placeholder' => 'Password', 'class' => 'form-control', 'id'=>'password', 'required' => 'required')) }}
{{ Form::text('email', $value = null, array('placeholder' => 'Email', 'class'=> 'form-control', 'required' => 'required')) }}
{{ Form::submit('Sign up', array('class' => 'btn btn-danger btn-default')) }}