I am currently developing in OctoberCMS which uses Laravel and a built in AJAX framework.
Upon submission of a form, I am trying to capture data in a CSV and ultimately load it into the database. I am using Laravel Excel v1.2.2 And the code i have written will only work if the CSV is loaded to the server as i am referencing a URL. I need this to instead load a CSV that is captured from a form. Here is my code:
Excel::load('my/url.xlsx' function($archive)
{
$result = $archive->get();
foreach($result as $key => $value)
{
echo $value-> //Echoing some values here
}
})->get();