When passing a parameter i.e. subtitle is this case to a view you are not putting it within the Session. Meaning to access it on the view you just need to do $subtitle. If you do Session::put('key', 'value') the value will be stored in the session and can be access via Session::get('key') and you can check via the has method.
matthewburrow said:
When passing a parameter i.e. subtitle is this case to a view you are not putting it within the Session. Meaning to access it on the view you just need to do $subtitle. If you do Session::put('key', 'value') the value will be stored in the session and can be access via Session::get('key') and you can check via the has method.
Yes, but I have found this in the documentation:
Note: Since the with method flashes data to the session, you may retrieve the data using the typical Session::get method.
http://laravel.com/docs/responses#redirects
Does that apply only to redirects?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community