get session laravel in javascript code example Example: print session in laravel dd(session()->all());