1我需要在更新函数中传递3个参数(名称,路径,编号)这里,下面是相同的代码,请帮助我。感谢帮助
路线:
Route::put('update_document_details/{name}/{path}/{number}',array('as'=>'update_document_details','uses'=>'AuthorsController@update_document_details'));
控制器:
public function update_document_details($name,$path,$number)
{
$document_details=Response::json(Author::update_document_details_by_id_Call($name,$path,$number));
return $document_details;
}
模型:
public static function update_document_details_by_id_Call($name,$path,$number)
{
return DB::select("call update_document_details_by_id('$name','$path','$number')");
}