How can I put JavaScript variable inside php script?

|
aaravonly4you 2019-11-29 10:20:47
Im posting here a project…
aaravonly4you 2019-11-29 10:22:10
https://github.com/im-noob/ResourceControllerNotWorkingProblem

im-noob/ResourceControllerNotWorkingProblemGitHub
ResourceControllerNotWorkingProblem. Contribute to im-noob/ResourceControllerNotWorkingProblem development by creating an account on GitHub.
aaravonly4you 2019-11-29 10:22:17
aaravonly4you 2019-11-29 10:22:10
https://github.com/im-noob/ResourceControllerNotWorkingProblem

Kindly have a look…

aaravonly4you 2019-11-29 10:22:59
Actually im using… Resources controller…
aaravonly4you 2019-11-29 10:23:42
But why it’s not working in case of update and delete ?
aaravonly4you 2019-11-29 10:25:32
But create us working fine…
aaravonly4you 2019-11-29 10:26:15
Actually im not getting instance of employees model…
aaravonly4you 2019-11-29 10:28:55
If anyone is live
aaravonly4you 2019-11-29 10:28:56
Kindly help…
aaravonly4you 2019-11-29 10:29:35
laravel_discuss-19577.jpg
Im not getting instance of employees model why?
mahdyfo 2019-11-29 10:34:48
aaravonly4you 2019-11-29 10:29:35
Im not getting instance of employees model why?

send ur route

skys215 2019-11-29 10:53:23
Have you done “route-model binding”?
rahulnitc 2019-11-29 11:44:41
How can I put JavaScript variable inside php script?
I code segment is like this.

var batchId = “bat101”;
<?php
session()->put(‘batch_id’, batchId);
?>

I want to put batchId inside php session variable.

rahulnitc 2019-11-29 11:45:19
rahulnitc 2019-11-29 11:44:41
How can I put JavaScript variable inside php script?
I code segment is like this.

var batchId = “bat101”;
<?php
session()->put(‘batch_id’, batchId);
?>

I want to put batchId inside php session variable.

Anyone have any suggestions?

skys215 2019-11-29 11:47:51
javascript run on a browser
php run on a server
you need to pass it through a request
rahulnitc 2019-11-29 11:49:18
skys215 2019-11-29 11:47:51
javascript run on a browser
php run on a server
you need to pass it through a request

Without pass request any other alternate solution?

skys215 2019-11-29 11:49:39
nope, client use request to interact with the server
skys215 2019-11-29 11:51:19
php passes the rendered page to the browser, and javascript starts running
How can you build a house in the air? you must have a base
rrajesh011 2019-11-29 12:40:06
🅳🅰️🅽🆂 2019-11-29 07:41:40
Indonesia

Sad

vikash_sharma90 2019-11-29 13:13:28
Reported as spam.👍
🅳🅰️🅽🆂 2019-11-29 13:17:58
rrajesh011 2019-11-29 12:40:06
Sad

Sorry I was wrong…I thought the sender mentioned something about Jakarta before🙏

rethdaro 2019-11-29 16:42:16
Can I have link how can I update php version from 7.2 to 7.3 in macbook?
skys215 2019-11-29 17:33:47
Homebrew?
rethdaro 2019-11-29 18:31:38
I’m not using homebrew
skys215 2019-11-30 04:39:19
There is another one, I’ll find for you, wait
skys215 2019-11-30 04:40:42
rethdaro 2019-11-29 16:42:16
Can I have link how can I update php version from 7.2 to 7.3 in macbook?

https://php-osx.liip.ch/

iaminevitable 2019-11-30 04:58:54
rrajesh011 2019-11-29 07:25:08
Location?

കൊച്ചി

Blast06 2019-11-30 05:47:08
Guys, i have a question, when should i refresh the token of the user(the obvious answer would be “when the token expire”), what i try to say is.. for example, the user is requesting for something, and then, suddenly, his token is expired..
KakujaId 2019-11-30 06:17:45
Im from indonesia
efe_da_first 2019-11-30 07:42:05
Anyone got help on how to use laravel to develop a 2×2 mlm matrix system to 6th generation?
rrajesh011 2019-11-30 08:25:44
iaminevitable 2019-11-30 04:58:54
കൊച്ചി

Bsdk

skys215 2019-11-30 10:44:58
Blast06 2019-11-30 05:47:08
Guys, i have a question, when should i refresh the token of the user(the obvious answer would be “when the token expire”), what i try to say is.. for example, the user is requesting for something, and then, suddenly, his token is expired..

Refresh token every time it send a request

coderme 2019-11-30 11:36:31
laravel_discuss-19706.jpg
What can be the reason for the message above when editing or adding
Mhd_javad1 2019-11-30 11:56:45
من از پنل مدیریت نوا استفاده میکنیم میخوام روی دو تا از Route هام از احراز هویت نوا برای ادمین استفاده کنم کسی میتونه کمک کنه چجوری این کار را بکنم؟
skys215 2019-11-30 13:33:16
Sorry, English group
khorshideedalate 2019-11-30 13:34:21
skys215 2019-11-30 13:33:16
Sorry, English group

laravel_discuss-19725.jpg
please error fogh rahnamee konid

skys215 2019-11-30 13:36:09
Exclude _token when inserting
Or set fillable on that model
khorshideedalate 2019-11-30 14:20:21
skys215 2019-11-30 13:36:09
Exclude _token when inserting
Or set fillable on that model

tanx

Blast06 2019-11-30 15:05:53
skys215 2019-11-30 10:44:58
Refresh token every time it send a request

Oh, is that a good practice?

2019-11-30 16:10:15
iaminevitable 2019-11-27 20:21:21

Is this available for remote?

skys215 2019-11-30 17:16:37
Blast06 2019-11-30 15:05:53
Oh, is that a good practice?

Not sure

Blast06 2019-11-30 18:10:21
Well, thanks anyways skys
iaminevitable 2019-11-30 18:15:31
2019-11-30 16:10:15
Is this available for remote?

Nop

2019-11-30 19:47:28
iaminevitable 2019-11-30 18:15:31
Nop

Alright

2019-12-01 07:21:40
anyone know about the voyager admin it’s working for laravel 6.x
senhorY 2019-12-01 10:52:34
Yes it is
rethdaro 2019-12-01 11:02:24
https://rowanwins.github.io/vue-dropzone/docs/dist/#/installation

I can not upload multi image files,… Do you have any more document please

Kistlak 2019-12-01 14:52:49
I successfully created a JWT token in one of the applications in cloud hosting using Tymon/jwt-auth. But, another app which has same project that is in the same cloud hosting returns true for JWT instead of a token. How can I Fix this ??
htoowaikhant 2019-12-01 16:05:57
hi all, i got the error “Use of undefined constant STDIN – assumed ‘STDIN’ (this will throw an Error in a future version of PHP” when i run artisan command.
htoowaikhant 2019-12-01 16:06:23
plz let me know i to solve it.
|