lundi 20 février 2017

use javascript variable with laravel

I'm trying to use my javascript variable with laravel.But I'm getting this error.

error:

Use of undefined constant tag - assumed 'tag'

Use of undefined constant tag - assumed 'tag'

and this is my code.

var tag = location.tagCode;
var rfidString = ('{!!\App\Rfid::where('rfid_id', tag)->first()!!}')
var rfid = JSON.parse(rfidString);



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ldvG6R
via IFTTT

Aucun commentaire:

Enregistrer un commentaire