I am using laravel 5.1 for my project and till now it us going perfect until I wanted to use stored procedure in it.
so far I have gathered the information as
$result = DB::select('call InsertNewApplicant(?????????????????????????)',
array($firstName, $middleName, $addressLine_1, $addressLine_2, $postCode, $landline, $mobile, $email,
$DOB, $maritalStatus, $industry, $occupation, $jobTitle, $selfEmployed, $selfAssessment, $workHome,
$ownTransport, $companyVehicle, $paySubs, $otherIncome, $printForms, $marketingUs, $marketingOther,
$agreedTNCs, $TNCVersion, $CampaignSource));
might be using this code for the controller to update any data from mysql, but as a beginner in Laravel, I have no idea where to define my stored procedure and in which file
I have visited many links , but all I could get is this code, not a single perfect example.
Can you please elaborate a small example on how to call a stored procedure in controller for a specific action?
and what all are prerequisite and other things that has to be taken care of