Reputation: 9
I try to use this.
@extends('layouts')
@section('content')
{{ Form::open(array('action' => 'Controller@method')) }}
<table>
<tr><td>Name</td><td>{{ Form::text('name') }}</td></tr>
<tr><td>email</td><td>{{ Form::text('email') }}</td></tr>
<tr><th colspan='2'><input type="submit" value='Submit'></th></tr>
</table>
{{ Form::close() }}
@stop
But I found It's fail from Form::open(array('action' => 'Controller@method'))
I would like to know how to fix this this problem.
Upvotes: 1
Views: 73
Reputation: 7746
Should be using
@stop()
in blade template.
And make sure your method is returning something. When I build methods I start with a test return value like so
return 'hello this works';
if the method is called and all is well you'll see that message.
Just use
Route::get('/', function() {
return 'this is a test';
});
Upvotes: 1
Reputation: 448
When developing laravel application, change first the debug configuration:
app/config/app.php line: 16 'debug' => false to 'debug' => true, - this will help you to see the errors, so that it would be easy for us to help you.
And make sure that
{{ Form::open(array('action' => 'Controller@method')) }}
'action' => 'Controller@method' exists.
Upvotes: 2