I'm having trouble accessing a variable passed to a view in laravel blade.
I've had no problems before - in this case though I'm setting the variable and using a redirect as follows:
return Redirect::route('members.create')
->withInput()
->with('test1', 'Email address already exists.');
Then in my view i'm trying to echo out the result as follows:
{{ (isset($test1) ? $test1 : "No Error" )}}
I know the error message exists as I can see it set in the profiler but any attempts to access $test1 gets an error: undefined variable
I'm doing something very basic but obviously making a basic erro
Can someone help and tell me what is my schoolboy error!
Thank you