lundi 28 décembre 2015

Execute Stored Procedure from Laravel

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 the statement to execute the sp from laravel 5.

it should be something like this: execute my_stored_procedure. but I can not seem to find anything like that online.



via Chebli Mohamed

1 commentaire:

  1. \DB::statement('call STORED_PROCEDURE(' . $var_if_necessary . ', "'.$var2_if_necessary.'")');

    RépondreSupprimer