Menu

How to call Stored Procedure with Eloquent (Laravel)?

Written by

There is no standard procedure mentioned in the documentation that how to call a stored procedure in MYSQL in Laravel with Eloquent syntax.

I mean is there any way to call stored procedures in MySQL with the help of eloquent syntax like.

 

$result = StoredProcedures::my_custom_procedure(param1, param2);
return view('welcome')->with('result',$result);

 

Is there any way to call and fetch results from stored procedures with pure eloquent syntax (purely eloquent way)

Article Categories:
Laravel

Leave a Reply

Your email address will not be published. Required fields are marked *

Shares