session()->has('???') always blank in view file |
If I understand correctly the code you show is inside of the ajax.success callback. If that is true then the problem is that the PHP will only be evaluated once when the page is first loaded but not when the javascript callback executes.
Instead of pulling the value from the session, you should return the value to ajax.success. |
Messages In This Thread |
session()->has('???') always blank in view file - by kristianlake - 06-21-2020, 02:50 AM
RE: session()->has('???') always blank in view file - by dave friend - 06-22-2020, 08:35 AM
RE: session()->has('???') always blank in view file - by kristianlake - 06-22-2020, 09:57 AM
|