I have come across a situation where the columns generated by my stored procedure
are dynamic. I want to know, do we have any method to get the columns names of a result set when the result set returned by stored procedure is empty in Laravel?
I can easily access columns by iterations over the result set when it is not empty but is there any method to access the column names when the data is empty?
That's what I mean to be exact.
$data = Schema::getColumnListing("call conflictReport(123,'2016-08-01 09:00:31','2016-08-01 09:00:31')");
My procedure takes 3 parameters as in parameters.
When the result set is empty, I can't access the column names. I am using getColumnListing
of Laravel.