daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. public function deseriazeAjax(Request $request){
  2.         $datas = explode('&',$request->form); // Form is the variable that contains the data that comes from javascript
  3.         $returndata = [];
  4.         foreach ($datas as $key => $item){
  5.             $array = explode("=", $item);
  6.             $returndata[$array[0]] = $array[1];
  7.         }
  8.         //dd($returndata['name']); ->This return de field name
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top