Php versions – access to javascript variables in laravel
how can I access javascript variables in blade laravel? for example var counter = 1; {{ dd(counter) }} it gives me this error Use of undefined constant counter - assumed 'counter' (this will throw an Error in a future version…