after define route for edit fields and create function in controller i get this error: Controller method not found.

My form:

{{ Form::open(array('route' => array('linksPlugin.edit',$linkFields->id))) }}
...
{{ Form::close() }}

My Route:

Route::controller(
            'linksPlugin','linksPluginManagmentController',
                array(
                                                    ...
                        'getEditLink'            => 'linksPlugin.edit',
                                                    ...
                     )
                 );

Controller Action:

public function getEditLink($id){
       print_r($id);
}
有帮助吗?

解决方案

You may want to set the form method to GET it is probably defaulting to POST:

{{ Form::open(array(
       'route' => array('linksPlugin.edit', $linkFields->id), 
       'method' => 'GET')) }}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top