Laravel - Question about localStorage

0

I am developing a sales system for a college job, when I will make a sale the user selects the product that will sell and the quantity, these items will be displayed in an HTML table and will be stored in the localStorage I made by JQuery. My question is: how do I pass the data from the localStorage to the controller to store in the bank, I currently have a form of Laravel but I do not know how to include it there, I would like to know how to do it or if it has an easier way, / p>

Excerpts from the song:

link link

    
asked by anonymous 14.06.2017 / 02:33

1 answer

0

You should use facade of Laravel:

No Controller:

 use Illuminate\Support\Facades\Storage;

 Storage::disk('public')->put('group/1', $fileContents);

In View:

{{ Storage::disk('public')->url('grou/1/fileContents.txt') }}

Follow the documentation link:

link

    
16.06.2017 / 15:37