I\'m trying to call a stored procedure from via a laravel route and i keep getting an error:
{\"error\":{\"type\":\"Illuminate\\\\Database\\\\QueryException\
You might find some trouble to execute them. Here are some options:
DB::statement(DB::raw('CALL getLibraryList('.$email.');'));
Or
DB::select('CALL getLibraryList(?)',array($email));
And, the dirtiest one:
$db = DB::connection();
$stmt = $db->pdo->prepare("CALL getLibraryList(?)");
$stmt->bindParam(1, $email);
$stmt->execute();
$search = array();
do {
$search = $stmt->fetchAll(PDO::FETCH_CLASS, 'stdClass');
} while ($stmt->nextRowset());