How to execute Stored Procedure from Laravel

前端 未结 11 1610
无人及你
无人及你 2020-12-01 00:28

I need to execute a stored procedure after my form submits data. I have the stored procedure working like I want it, and I have my form working properly. I just do not know

11条回答
  •  星月不相逢
    2020-12-01 01:03

    Working code with Laraval 5.6,

    DB::select('EXEC my_stored_procedure ?,?,?',['var1','var2','var3']);
    

提交回复
热议问题